show cached game cover immediately

This commit is contained in:
Gamebrary 2021-04-30 14:56:32 -07:00
parent b6b9868076
commit 7e9d62cee1

View file

@ -20,27 +20,27 @@
lg="4" lg="4"
class="sidebar pr-md-1" class="sidebar pr-md-1"
> >
<b-img
:src="activeGameCoverUrl"
:alt="game.name"
class="game-cover cursor-pointer"
v-observe-visibility="toggleCoverVisible"
rounded
@click="$bvModal.show('game-images')"
/>
<b-skeleton-img <b-skeleton-img
v-if="loading" v-if="loading"
width="100%" width="100px"
height="200px" height="100px"
/> />
<template v-else> <template v-else>
<b-img
:src="activeGameCoverUrl"
:alt="game.name"
class="game-cover cursor-pointer"
v-observe-visibility="toggleCoverVisible"
rounded
@click="$bvModal.show('game-images')"
/>
<game-images :game="game" /> <game-images :game="game" />
<!-- <game-videos :videos="game.videos" v-if="game.videos" /> --> <!-- <game-videos :videos="game.videos" v-if="game.videos" /> -->
<game-websites :game="game" class="d-none d-md-inline" />
</template> </template>
<game-websites :game="game" class="d-none d-md-inline" />
<!-- <pre>{{ game.genres.map(({ id }) => id) }}</pre> --> <!-- <pre>{{ game.genres.map(({ id }) => id) }}</pre> -->
<!-- TODO: add bundles to game detail? --> <!-- TODO: add bundles to game detail? -->
<!-- {{ game.bundles ? `Found in ${game.bundles.length} compilations.` : null }} --> <!-- {{ game.bundles ? `Found in ${game.bundles.length} compilations.` : null }} -->