diff --git a/packages/nc-gui/components/cell/attachment/index.vue b/packages/nc-gui/components/cell/attachment/index.vue index c4508b1528..97336ceca7 100644 --- a/packages/nc-gui/components/cell/attachment/index.vue +++ b/packages/nc-gui/components/cell/attachment/index.vue @@ -153,12 +153,6 @@ useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e) => { const rowHeight = inject(RowHeightInj, ref()) const open = (e: Event) => { - // if (isMobileMode.value && !isExpandedForm.value) { - // isExpandedForm.value = true - - // return - // } - e.stopPropagation() _open() @@ -179,6 +173,14 @@ const onExpand = () => { modalVisible.value = true } + +const onImageClick = (item: any) => { + if (isMobileMode.value && !isExpandedForm.value) return + + if (!isMobileMode.value && (isGallery.value || (isKanban.value && !isExpandedForm.value))) return + + selectedImage.value = item +}