mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
force aspect ratio for all covers
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -316,7 +316,6 @@ onMounted(async () => {
|
||||
? `/assets/romm/assets/${auth.user?.avatar_path}`
|
||||
: defaultAvatarPath
|
||||
"
|
||||
:aspect-ratio="smAndDown ? 20 / 1 : 20 / 3"
|
||||
cover
|
||||
>
|
||||
</v-img>
|
||||
|
||||
Reference in New Issue
Block a user