Using thumbnail width and height for release banner photos. Preventing user page from reloading when closing the add stash dialog without adding stash.
This commit is contained in:
@@ -33,8 +33,8 @@
|
||||
v-else-if="release.teaser && /^image\//.test(release.teaser.mime)"
|
||||
:src="getPath(release.teaser, 'thumbnail', { original: true })"
|
||||
:alt="release.title"
|
||||
:width="release.teaser.width"
|
||||
:height="release.teaser.height"
|
||||
:width="release.teaser.thumbnailWidth"
|
||||
:height="release.teaser.thumbnailHeight"
|
||||
loading="lazy"
|
||||
class="item trailer"
|
||||
>
|
||||
@@ -68,8 +68,8 @@
|
||||
<img
|
||||
:src="getPath(cover, 'thumbnail')"
|
||||
:style="{ 'background-image': getBgPath(cover, 'lazy') }"
|
||||
:width="cover.width"
|
||||
:height="cover.height"
|
||||
:width="cover.thumbnailWidth"
|
||||
:height="cover.thumbnailHeight"
|
||||
class="item cover"
|
||||
loading="lazy"
|
||||
@load="$emit('load', $event)"
|
||||
@@ -93,8 +93,8 @@
|
||||
:src="getPath(photo, 'thumbnail')"
|
||||
:style="{ 'background-image': `url('${getPath(photo, 'lazy')}` }"
|
||||
:alt="`Photo ${photo.index + 1}`"
|
||||
:width="photo.width"
|
||||
:height="photo.height"
|
||||
:width="photo.thumbnailWidth"
|
||||
:height="photo.thumbnailHeight"
|
||||
loading="lazy"
|
||||
class="item"
|
||||
@load="$emit('load', $event)"
|
||||
|
||||
Reference in New Issue
Block a user