From b23186d42a53693dda83819a3cfdf5e04e76f7de Mon Sep 17 00:00:00 2001 From: sreehari jayaraj Date: Sat, 9 Sep 2023 17:44:37 +0530 Subject: [PATCH 1/6] fix: attachment size --- .../components/cell/attachment/index.vue | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui/components/cell/attachment/index.vue b/packages/nc-gui/components/cell/attachment/index.vue index c7dada364a..a2bf9513fa 100644 --- a/packages/nc-gui/components/cell/attachment/index.vue +++ b/packages/nc-gui/components/cell/attachment/index.vue @@ -150,7 +150,7 @@ const rowHeight = inject(RowHeightInj, ref(1.8)) height: isForm ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`, }" class="nc-attachment-cell relative flex color-transition flex items-center" - :class="{'justify-center': !active, 'justify-between': active}" + :class="{ 'justify-center': !active, 'justify-between': active }" > @@ -209,15 +209,29 @@ const rowHeight = inject(RowHeightInj, ref(1.8))
{{ item.title }}
-
+
-
+
@@ -252,7 +266,7 @@ const rowHeight = inject(RowHeightInj, ref(1.8)) .nc-cell { .nc-attachment-cell { .nc-attachment { - @apply w-[1.8rem] h-[1.8rem] min-h-[1.8rem] min-w-[1.8rem] ring-1 ring-gray-300 rounded; + // @apply w-[1.8rem] h-[1.8rem] min-h-[1.8rem] min-w-[1.8rem] ring-1 ring-gray-300 rounded; } .ghost, From fc10153ba8d1feedc1aa2aeefde03d49a8d4af43 Mon Sep 17 00:00:00 2001 From: sreehari jayaraj Date: Sat, 9 Sep 2023 17:47:42 +0530 Subject: [PATCH 2/6] fix: css --- packages/nc-gui/components/cell/attachment/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/cell/attachment/index.vue b/packages/nc-gui/components/cell/attachment/index.vue index a2bf9513fa..35d67ace7b 100644 --- a/packages/nc-gui/components/cell/attachment/index.vue +++ b/packages/nc-gui/components/cell/attachment/index.vue @@ -266,7 +266,7 @@ const rowHeight = inject(RowHeightInj, ref(1.8)) .nc-cell { .nc-attachment-cell { .nc-attachment { - // @apply w-[1.8rem] h-[1.8rem] min-h-[1.8rem] min-w-[1.8rem] ring-1 ring-gray-300 rounded; + @apply min-h-[1.8rem] min-w-[1.8rem] ring-1 ring-gray-300 rounded; } .ghost, From 5497056fd3d44159ebb03426f5ae98b2b45d45ef Mon Sep 17 00:00:00 2001 From: sreehari jayaraj Date: Mon, 11 Sep 2023 11:27:10 +0530 Subject: [PATCH 3/6] feat: large attachment size on drawer --- packages/nc-gui/components/cell/attachment/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/cell/attachment/index.vue b/packages/nc-gui/components/cell/attachment/index.vue index 35d67ace7b..1fda397520 100644 --- a/packages/nc-gui/components/cell/attachment/index.vue +++ b/packages/nc-gui/components/cell/attachment/index.vue @@ -2,6 +2,7 @@ import { onKeyDown } from '@vueuse/core' import { useProvideAttachmentCell } from './utils' import { useSortable } from './sort' +import { isDrawerExist } from '~/utils/browserUtils' import { ActiveCellInj, CurrentCellInj, @@ -139,7 +140,7 @@ useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e) => { } }) -const rowHeight = inject(RowHeightInj, ref(1.8)) +const rowHeight = inject(RowHeightInj, ref())