From 8b3457f41496109348855c390e6805b4a2273bc8 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Wed, 24 Jul 2024 07:23:26 +0000 Subject: [PATCH] fix: refactor files --- .../components/cell/attachment/Carousel.vue | 17 +++++++++++------ .../nc-gui/components/cell/attachment/Modal.vue | 2 +- .../cell/attachment/{ => Preview}/Image.vue | 0 .../cell/attachment/{ => Preview}/Video.vue | 0 .../nc-gui/components/cell/attachment/index.vue | 2 +- .../nc-gui/components/general/FormBanner.vue | 6 +++++- packages/nc-gui/components/smartsheet/Form.vue | 2 +- .../nc-gui/components/smartsheet/Gallery.vue | 2 +- .../nc-gui/components/smartsheet/Kanban.vue | 2 +- .../components/smartsheet/calendar/SideMenu.vue | 2 +- .../virtual-cell/components/ListItem.vue | 2 +- 11 files changed, 23 insertions(+), 14 deletions(-) rename packages/nc-gui/components/cell/attachment/{ => Preview}/Image.vue (100%) rename packages/nc-gui/components/cell/attachment/{ => Preview}/Video.vue (100%) diff --git a/packages/nc-gui/components/cell/attachment/Carousel.vue b/packages/nc-gui/components/cell/attachment/Carousel.vue index 98098e4511..6e66cca0e3 100644 --- a/packages/nc-gui/components/cell/attachment/Carousel.vue +++ b/packages/nc-gui/components/cell/attachment/Carousel.vue @@ -89,7 +89,7 @@ watchOnce(emblaMainApi, async (emblaMainApi) => {
- { :srcs="getPossibleAttachmentSrc(item)" /> - { -
+
- { :class="[dragging ? 'cursor-move' : 'cursor-pointer']" class="nc-attachment h-full w-full flex items-center justify-center overflow-hidden" > - { :class="{ '!w-30': isForm || isExpandedForm }" @click="() => onFileClick(item)" > - - +
form-banner-left' diff --git a/packages/nc-gui/components/smartsheet/Form.vue b/packages/nc-gui/components/smartsheet/Form.vue index 00e2e8d023..edb4e62f35 100644 --- a/packages/nc-gui/components/smartsheet/Form.vue +++ b/packages/nc-gui/components/smartsheet/Form.vue @@ -872,7 +872,7 @@ useEventListener( " style="transition: all 0.3s ease-in" > -