Use size for height instead of rowHeight

cache
Varun Patil 2022-10-15 11:57:27 -07:00
parent 93779c2cbe
commit f2202f919c
1 changed files with 8 additions and 5 deletions

View File

@ -35,9 +35,11 @@
</template>
<template v-slot="{ item }">
<div v-if="item.type === 0" class="head-row"
:class="{ 'selected': item.selected}"
>
<div v-if="item.type === 0"
class="head-row"
:class="{ 'selected': item.selected }"
:style="{ height: item.size + 'px' }">
<div class="super" v-if="item.super !== undefined">
{{ item.super }}
</div>
@ -48,11 +50,12 @@
</div>
<div v-else
class="photo-row"
:style="{ height: rowHeight + 'px' }">
class="photo-row"
:style="{ height: item.size + 'px' }">
<div class="photo" v-for="(photo, index) in item.photos" :key="index"
:style="{ width: rowHeight + 'px' }">
<Folder v-if="photo.flag & c.FLAG_IS_FOLDER"
:data="photo"
:key="photo.fileid" />