From 01c5a87d89d43bf9420687df541f85243e8d87df Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Wed, 24 Jul 2024 07:23:27 +0000 Subject: [PATCH] fix: remove comments fix: update attachment cell ui fix: update attachment expand model --- .../components/cell/attachment/Carousel.vue | 18 +- .../components/cell/attachment/Modal.vue | 159 ++++++++---------- .../components/cell/attachment/index.vue | 88 ++++++---- packages/nc-gui/components/nc/Tooltip.vue | 16 +- 4 files changed, 154 insertions(+), 127 deletions(-) diff --git a/packages/nc-gui/components/cell/attachment/Carousel.vue b/packages/nc-gui/components/cell/attachment/Carousel.vue index b4cdc29e8e..1a8276d9e4 100644 --- a/packages/nc-gui/components/cell/attachment/Carousel.vue +++ b/packages/nc-gui/components/cell/attachment/Carousel.vue @@ -196,14 +196,14 @@ onMounted(() => { -
+
@@ -253,7 +253,11 @@ onMounted(() => {
- + { - + - + {
-
+
diff --git a/packages/nc-gui/components/cell/attachment/Modal.vue b/packages/nc-gui/components/cell/attachment/Modal.vue index 6ceed95d6b..3f123f2309 100644 --- a/packages/nc-gui/components/cell/attachment/Modal.vue +++ b/packages/nc-gui/components/cell/attachment/Modal.vue @@ -28,6 +28,8 @@ const dropZoneRef = ref() const sortableRef = ref() +const { isMobileMode } = useGlobal() + const { dragging } = useSortable(sortableRef, visibleItems, updateModelValue, readOnly) const { isOverDropZone } = useDropZone(dropZoneRef, onDrop) @@ -82,19 +84,28 @@ const handleFileDelete = (i: number) => {