Browse Source

fix: tailwind measures

pull/6343/head
sreehari jayaraj 1 year ago
parent
commit
a453e41e5d
  1. 10
      packages/nc-gui/components/cell/attachment/index.vue

10
packages/nc-gui/components/cell/attachment/index.vue

@ -43,7 +43,7 @@ const currentCellRef = inject(CurrentCellInj, dropZoneInjection.value)
const isLockedMode = inject(IsLockedInj, ref(false))
const isDrawerExist = inject(IsExpandedFormOpenInj, ref())
const isExpandedForm = inject(IsExpandedFormOpenInj, ref())
const { isSharedForm } = useSmartsheetStoreOrThrow()!
@ -218,12 +218,12 @@ const rowHeight = inject(RowHeightInj, ref())
@click.stop="selectedImage = item"
>
<LazyCellAttachmentImage
class="h-[1.8rem] w-[1.8rem]"
class="h-7 w-7"
:alt="item.title || `#${i}`"
:class="{
'h-11.5 w-[3.8rem]': rowHeight === 2,
'h-[4.8rem] w-[5.8rem]': rowHeight === 4,
'h-[5.8rem] w-[6rem]': rowHeight === 6 || isDrawerExist,
'h-11.5 w-12.8': rowHeight === 2,
'h-16.8 w-20.8': rowHeight === 4,
'h-20.8 w-30': rowHeight === 6 || isExpandedForm,
}"
:srcs="getPossibleAttachmentSrc(item)"
/>

Loading…
Cancel
Save