diff --git a/packages/nc-gui/components/cell/RichText.vue b/packages/nc-gui/components/cell/RichText.vue index 054f29ca31..c9a73f0cf2 100644 --- a/packages/nc-gui/components/cell/RichText.vue +++ b/packages/nc-gui/components/cell/RichText.vue @@ -19,6 +19,8 @@ const props = defineProps<{ const emits = defineEmits(['update:value']) +const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))! + const turndownService = new TurndownService({}) turndownService.addRule('lineBreak', { @@ -171,7 +173,8 @@ watch(editorDom, () => { class="flex flex-col nc-textarea-rich-editor w-full" :class="{ 'ml-1 mt-2.5 flex-grow': props.fullMode, - 'nc-scrollbar-md': !props.fullMode && !props.readonly, + 'nc-scrollbar-md': (!props.fullMode && !props.readonly) || isExpandedFormOpen, + 'flex-grow': isExpandedFormOpen, }" /> diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index ab815cd3d8..a1cc284f0e 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -58,6 +58,8 @@ const isDragging = ref(false) const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value && (el as HTMLTextAreaElement)?.focus() const height = computed(() => { + if (isExpandedFormOpen.value) return 36 * 4 + if (!rowHeight.value || rowHeight.value === 1) return 36 return rowHeight.value * 36 @@ -169,7 +171,7 @@ watch(editEnabled, () => {