From b8ba4d295003c981f8d0084f8147d2269528a40e Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Sat, 23 Dec 2023 15:03:20 +0530 Subject: [PATCH] fix: in edit column modal default value input height should be same if rowHeight changed --- packages/nc-gui/components/cell/Checkbox.vue | 2 +- packages/nc-gui/components/cell/TextArea.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/cell/Checkbox.vue b/packages/nc-gui/components/cell/Checkbox.vue index fd5a496d7e..06129fb75a 100644 --- a/packages/nc-gui/components/cell/Checkbox.vue +++ b/packages/nc-gui/components/cell/Checkbox.vue @@ -92,7 +92,7 @@ useSelectedCellKeyupListener(active, (e) => { 'opacity-0': readOnly && !vModel, }" :style="{ - height: isForm || isExpandedFormOpen || isGallery ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`, + height: isForm || isExpandedFormOpen || isGallery || isEditColumnMenu ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`, }" tabindex="0" @click="onClick(false, $event)" diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index d2016b5d4d..788f8b7d80 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -60,7 +60,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value const height = computed(() => { if (isExpandedFormOpen.value) return 36 * 4 - if (!rowHeight.value || rowHeight.value === 1) return 36 + if (!rowHeight.value || rowHeight.value === 1 || isEditColumn.value) return 36 return rowHeight.value * 36 })