Browse Source

fix: Fixed issues with height and row height config in the case of text area

pull/7046/head
Muhammed Mustafa 12 months ago
parent
commit
9e520c7d5e
  1. 5
      packages/nc-gui/components/cell/TextArea.vue

5
packages/nc-gui/components/cell/TextArea.vue

@ -40,9 +40,9 @@ const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))!
const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value && (el as HTMLTextAreaElement)?.focus() const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value && (el as HTMLTextAreaElement)?.focus()
const height = computed(() => { const height = computed(() => {
if (!rowHeight.value || rowHeight.value === 1) return 40 if (!rowHeight.value || rowHeight.value === 1) return 36
return rowHeight.value * 60 return rowHeight.value * 36
}) })
const isVisible = ref(false) const isVisible = ref(false)
@ -107,6 +107,7 @@ watch(editEnabled, () => {
class="w-full" class="w-full"
:style="{ :style="{
maxHeight: `${height}px !important`, maxHeight: `${height}px !important`,
minHeight: `${height}px !important`,
}" }"
> >
<CellRichText v-model:value="vModel" sync-value-change readonly /> <CellRichText v-model:value="vModel" sync-value-change readonly />

Loading…
Cancel
Save