diff --git a/packages/nc-gui/components/cell/attachment/Carousel.vue b/packages/nc-gui/components/cell/attachment/Carousel.vue index 2119889c59..35f76e3d6c 100644 --- a/packages/nc-gui/components/cell/attachment/Carousel.vue +++ b/packages/nc-gui/components/cell/attachment/Carousel.vue @@ -9,7 +9,7 @@ const carouselRef = ref() const imageItems = computed(() => visibleItems.value.filter((item) => isImage(item.title, item.mimetype))) -const { getAttachmentSrc, showFallback, getBackgroundImage } = useAttachment() +const { getAttachmentSrc, showFallback } = useAttachment() /** navigate to previous image on button click */ onKeyDown( @@ -95,10 +95,7 @@ onClickOutside(carouselRef, () => {
-
+
diff --git a/packages/nc-gui/components/cell/attachment/Modal.vue b/packages/nc-gui/components/cell/attachment/Modal.vue index c3eb54391a..d86794da4b 100644 --- a/packages/nc-gui/components/cell/attachment/Modal.vue +++ b/packages/nc-gui/components/cell/attachment/Modal.vue @@ -38,7 +38,7 @@ const { isOverDropZone } = useDropZone(dropZoneRef, onDrop) const { isSharedForm } = useSmartsheetStoreOrThrow() -const { getAttachmentSrc, getBackgroundImage } = useAttachment() +const { getAttachmentSrc, showFallback } = useAttachment() onKeyDown('Escape', () => { modalVisible.value = false @@ -158,12 +158,13 @@ function onRemoveFileClick(title: any, i: number) {
-