mirror of
https://github.com/romancm/gamebrary
synced 2024-11-23 19:53:14 +00:00
show cached game cover immediately
This commit is contained in:
parent
b6b9868076
commit
7e9d62cee1
1 changed files with 12 additions and 12 deletions
|
@ -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 }} -->
|
||||||
|
|
Loading…
Reference in a new issue