refactor: single translate transform

old-stable24
Varun Patil 2022-10-16 19:01:39 -07:00
parent d90a85a459
commit 6db243a3a9
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@
<div class="photo" v-for="photo of item.photos" :key="photo.fileid" <div class="photo" v-for="photo of item.photos" :key="photo.fileid"
:style="{ :style="{
height: (photo.dispH || item.size) + 'px', height: (photo.dispH || item.size) + 'px',
width: photo.dispWp * rowWidth + 'px', width: (photo.dispWp * rowWidth) + 'px',
transform: 'translateX(' + photo.dispXp * rowWidth + 'px) translateY(' + photo.dispY + 'px)', transform: `translate(${photo.dispXp*rowWidth}px, ${photo.dispY}px`,
}"> }">
<Folder v-if="photo.flag & c.FLAG_IS_FOLDER" <Folder v-if="photo.flag & c.FLAG_IS_FOLDER"