This commit is contained in:
iriska-gri committed 2023-12-08 15:45:03 +03:00
1 parent d1d0f0d7db
commit 1a71c120f7
3 files changed
+17 -16

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "front",
"version": "0.0.37",
"version": "0.0.38",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "front",
"version": "0.0.37",
"version": "0.0.38",
"dependencies": {
"@mdi/font": "7.0.96",
"@vuelidate/core": "^2.0.3",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "front",
"version": "0.0.37",
"version": "0.0.38",
"scripts": {
"dev": "vite",
"build": "vite build",
+14 -13
View File
@@ -254,22 +254,23 @@
<v-col class="d-flex flex-column">
<v-card
class="h-100 flex-column d-flex overflow-auto overflow-x-hidden"
>mnbmnbm
>
<div
class="flex-column d-flex ma-3"
v-for="n in Math.ceil(x.gallery.length/19)"
:key=n
>
<v-row style="height:250px" v-if="((5-1)+(n-1)*19)<x.gallery.length" class="justify-space-between ">
<v-row style="height:250px" class="justify-space-between ">
<v-col
v-for="e in x.gallery.length" :key=e
v-for="e in x.gallery" :key=e
:lg="Math.floor(Math.random() * (Math.floor(5) - Math.ceil(3)) + Math.ceil(2))"
class="flex-column d-flex pa-0 pb-3"
:class="x.gallery[(e-1)+(n-1)*19]['bg']">
>
<div
v-if="((e-1)+(n-1)*19)<x.gallery.length"
class='h-100 w-100 flex-column d-flex'
>
<v-row>
@@ -278,8 +279,8 @@
cover
class=" pointer"
:src="`${burl}${x.gallery[(e-1)+(n-1)*19].img}`"
@click="openImg(x.gallery[(e-1)+(n-1)*19].id)"
:src="`${burl}${e.img}`"
@click="openImg(e.id)"
/>
</v-col>
</v-row>
@@ -289,13 +290,13 @@
density="compact"
variant="text"
size="small"
:color="heartIcoAll(x.gallery[(e-1)+(n-1)*19])?'red':'black'"
:icon= "heartIcoAll(x.gallery[(e-1)+(n-1)*19])?'mdi-heart':'mdi-heart-outline'"
@click = toggleLikeAll(x.gallery[(e-1)+(n-1)*19].id)
:color="heartIcoAll(e)?'red':'black'"
:icon= "heartIcoAll(e)?'mdi-heart':'mdi-heart-outline'"
@click = toggleLikeAll(e.id)
/>
</v-col>
<v-col class="pa-0 pl-1" >
{{x.gallery[(e-1)+(n-1)*19].likes.length}}
{{e.likes.length}}
</v-col>
</v-row>
</div>