From a8bf1878ebe566ca35b84900485e67125d70a2ac Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Thu, 21 Dec 2023 13:51:29 +0530 Subject: [PATCH 01/11] fix: checkbox alignment issue in grid cell --- packages/nc-gui/components/cell/Checkbox.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/cell/Checkbox.vue b/packages/nc-gui/components/cell/Checkbox.vue index be70d8d314..5bf86c4058 100644 --- a/packages/nc-gui/components/cell/Checkbox.vue +++ b/packages/nc-gui/components/cell/Checkbox.vue @@ -42,6 +42,8 @@ const readOnly = inject(ReadonlyInj) const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false)) +const rowHeight = inject(RowHeightInj, ref()) + const checkboxMeta = computed(() => { return { icon: { @@ -89,11 +91,18 @@ useSelectedCellKeyupListener(active, (e) => { 'nc-cell-hover-show': !vModel && !readOnly, 'opacity-0': readOnly && !vModel, }" + :style="{ + height: isForm || isExpandedFormOpen || isGallery ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`, + }" @click="onClick(false, $event)" >
From 262ef725bccb2d985ebf618dc29a88ed4aceb942 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Thu, 21 Dec 2023 13:54:47 +0530 Subject: [PATCH 02/11] fix: barcode cell alignment issue #7253 --- .../components/virtual-cell/barcode/Barcode.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue b/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue index 2c27509ecf..52ddbdac27 100644 --- a/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue +++ b/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue @@ -55,7 +55,7 @@ const rowHeight = inject(RowHeightInj, ref(undefined))
+ + From 0c897b49066c416b20ff61aa264cc4bdc252498c Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Thu, 21 Dec 2023 15:31:31 +0530 Subject: [PATCH 03/11] fix: remove additional divider from cell context menu #7253 --- .../components/smartsheet/grid/Table.vue | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/grid/Table.vue b/packages/nc-gui/components/smartsheet/grid/Table.vue index 013771bfa4..1551064575 100644 --- a/packages/nc-gui/components/smartsheet/grid/Table.vue +++ b/packages/nc-gui/components/smartsheet/grid/Table.vue @@ -1748,17 +1748,16 @@ onKeyStroke('ArrowDown', onDown) {{ $t('general.clear') }}
- - -
- - {{ $t('general.comment') }} -
-
+ + -
- {{ $t('labels.qrCodeValueTooLong') }} -
- + +
+
+ {{ $t('labels.qrCodeValueTooLong') }}
{{ $t('msg.warning.nonEditableFields.computedFieldUnableToClear') }} diff --git a/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue b/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue index 52ddbdac27..3d72642661 100644 --- a/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue +++ b/packages/nc-gui/components/virtual-cell/barcode/Barcode.vue @@ -55,9 +55,9 @@ const rowHeight = inject(RowHeightInj, ref(undefined))
@@ -65,7 +65,7 @@ const rowHeight = inject(RowHeightInj, ref(undefined)) v-if="showBarcode && rowHeight" :barcode-value="barcodeValue" :barcode-format="barcodeMeta.barcodeFormat" - :custom-style="{ height: rowHeight ? `${rowHeight * 1.4}rem` : `1.4rem` }" + :custom-style="{ height: rowHeight ? `${rowHeight * 1.8}rem` : `1.8rem` }" @on-click-barcode="showBarcodeModal" >