Browse Source

fix: in edit column modal default value input height should be same if rowHeight changed

pull/7270/head
Ramesh Mane 9 months ago
parent
commit
b8ba4d2950
  1. 2
      packages/nc-gui/components/cell/Checkbox.vue
  2. 2
      packages/nc-gui/components/cell/TextArea.vue

2
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)"

2
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
})

Loading…
Cancel
Save