force aspect ratio for all covers

This commit is contained in:
Zurdi
2024-06-27 00:06:26 +02:00
parent b314799c5a
commit 32e0850df8
6 changed files with 10 additions and 8 deletions

View File

@@ -16,6 +16,7 @@ const theme = useTheme();
: `/assets/romm/resources/${rom.path_cover_l}`
"
lazy
cover
>
<template #error>
<v-img
@@ -38,9 +39,7 @@ const theme = useTheme();
</template>
<style scoped>
#background-header {
width: 100%;
height: 300px;
transform: scale(10);
filter: blur(5px);
filter: blur(30px);
}
</style>

View File

@@ -82,6 +82,7 @@ onMounted(() => {
v-bind="hoverProps"
class="pointer"
ref="card"
cover
:src="
src
? src
@@ -143,7 +144,7 @@ onMounted(() => {
<template #error>
<v-img
:src="`/assets/default/cover/big_${theme.global.name.value}_missing_cover.png`"
:aspect-ratio="2 / 3"
cover
></v-img>
</template>
<template #placeholder>

View File

@@ -30,7 +30,8 @@ const theme = useTheme();
? `https:${rom.cover_url.replace('t_thumb', 't_cover_big')}`
: `/assets/default/cover/big_${theme.global.name.value}_missing_cover.png`
"
:aspect-ratio="3 / 4"
:aspect-ratio="2 / 3"
cover
lazy
><v-chip
class="px-2 position-absolute chip-type text-white translucent-dark"

View File

@@ -375,7 +375,8 @@ onBeforeUnmount(() => {
? `/assets/default/cover/big_${theme.global.name.value}_missing_cover.png`
: source.url_cover
"
:aspect-ratio="3 / 4"
:aspect-ratio="2 / 3"
cover
lazy
>
<template #placeholder>

View File

@@ -174,11 +174,12 @@ onBeforeUnmount(() => {
@click="updateCover(resource.url)"
:aspect-ratio="2 / 3"
:src="resource.thumb"
cover
>
<template #error>
<v-img
:src="`/assets/default/cover/big_${theme.global.name.value}_missing_cover.png`"
:aspect-ratio="2 / 3"
cover
></v-img>
</template>
<template #placeholder>

View File

@@ -316,7 +316,6 @@ onMounted(async () => {
? `/assets/romm/assets/${auth.user?.avatar_path}`
: defaultAvatarPath
"
:aspect-ratio="smAndDown ? 20 / 1 : 20 / 3"
cover
>
</v-img>