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