Skip to content

Commit

Permalink
🐛 prevent displaying mismatched cover images when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaraku committed Nov 5, 2023
1 parent dd96eba commit 6f47520
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/SheetTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ const {
<!-- sheet cover image -->
<picture v-if="!hideCover">
<source
:key="sheet.imageUrlM"
:srcset="sheet.imageUrlM"
type="image/webp"
>
<img
:key="sheet.imageUrl"
:src="sheet.imageUrl"
alt=""
class="CoverImage"
Expand Down
1 change: 1 addition & 0 deletions components/dialogs/SheetDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ watch(isOpened, () => {

<v-card>
<v-img
:key="imageSrc"
contain
class="grey lighten-2"
:class="{ 'rainbow-background': sheet.isSpecial }"
Expand Down

0 comments on commit 6f47520

Please sign in to comment.