This commit is contained in:
2026-02-09 21:48:36 +02:00
parent 435f47a647
commit fc2fc3a907
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ class GamesManager{
this.list = async function(query){
return await db.list(collection, {
query,
project: { name:1, id:1, thumb: 1}
project: { name:1, description:1, id:1, thumb: 1}
});
}
+7 -7
View File
@@ -1,13 +1,13 @@
<template>
<v-container>
<v-row>
<v-col v-for="(v, i) in items" :key="i" cols="12" xs="6" sm="4" md="3" xl="2" class="position-relative">
<router-link :to="`/playground/game/${v.id}`">
<v-img :src="`/asset/thumb/${v.thumb}.webp`"></v-img>
</router-link>
<div class="d-flex">
<span class="flex-grow-1">{{ v.name }}</span>
</div>
<v-col v-for="(v, i) in items" :key="i" cols="12" xs="6" sm="6" md="4" xl="4">
<v-card :to="`/playground/game/${v.id}`" class="hover-effect">
<v-img :src="`/asset/thumb/${v.thumb}.webp`" cover content-class="d-flex flex-column justify-end" gradient="to bottom, rgba(0,0,0,0), rgba(0,0,0,.5)">
<v-card-title class="text-white text-h6" v-text="v.name"></v-card-title>
<div class="text-white text-caption mx-4" v-text="v.description"></div>
</v-img>
</v-card>
</v-col>
</v-row>
</v-container>