mirror of
https://github.com/romancm/gamebrary
synced 2024-12-19 15:53:06 +00:00
make entire search result card clickable
This commit is contained in:
parent
a3196f8b77
commit
7d4cdff427
1 changed files with 6 additions and 8 deletions
|
@ -4,6 +4,7 @@
|
||||||
class="game-card mb-1"
|
class="game-card mb-1"
|
||||||
:bg-variant="nightMode ? 'dark' : ''"
|
:bg-variant="nightMode ? 'dark' : ''"
|
||||||
:text-variant="nightMode ? 'white' : ''"
|
:text-variant="nightMode ? 'white' : ''"
|
||||||
|
@click="addGame"
|
||||||
>
|
>
|
||||||
<b-row no-gutters v-if="game && game.name">
|
<b-row no-gutters v-if="game && game.name">
|
||||||
<b-col cols="3">
|
<b-col cols="3">
|
||||||
|
@ -19,16 +20,9 @@
|
||||||
{{ game.name }}
|
{{ game.name }}
|
||||||
</b-card-title>
|
</b-card-title>
|
||||||
|
|
||||||
<b-button
|
|
||||||
@click="addGame"
|
|
||||||
variant="primary"
|
|
||||||
>
|
|
||||||
{{ $t('board.list.addGame') }}
|
|
||||||
</b-button>
|
|
||||||
|
|
||||||
<b-form-rating
|
<b-form-rating
|
||||||
v-if="gameRating"
|
v-if="gameRating"
|
||||||
class="p-0 border-0 shadow-none"
|
:class="['p-0', { 'bg-dark': nightMode }]"
|
||||||
inline
|
inline
|
||||||
:value="gameRating"
|
:value="gameRating"
|
||||||
readonly
|
readonly
|
||||||
|
@ -100,5 +94,9 @@ export default {
|
||||||
.toast-image {
|
.toast-image {
|
||||||
width: 80px !important;
|
width: 80px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.game-card {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue