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,13 +20,6 @@
lg="4" lg="4"
class="sidebar pr-md-1" class="sidebar pr-md-1"
> >
<b-skeleton-img
v-if="loading"
width="100%"
height="200px"
/>
<template v-else>
<b-img <b-img
:src="activeGameCoverUrl" :src="activeGameCoverUrl"
:alt="game.name" :alt="game.name"
@ -36,11 +29,18 @@
@click="$bvModal.show('game-images')" @click="$bvModal.show('game-images')"
/> />
<b-skeleton-img
v-if="loading"
width="100px"
height="100px"
/>
<template v-else>
<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 }} -->