Browse Source

fix(nc-gui): rich text row height issue

pull/7426/head
Ramesh Mane 10 months ago
parent
commit
f5cd8c63c4
  1. 2
      packages/nc-gui/components/cell/RichText.vue
  2. 4
      packages/nc-gui/components/cell/TextArea.vue

2
packages/nc-gui/components/cell/RichText.vue

@ -180,7 +180,7 @@ watch(editorDom, () => {
<EditorContent <EditorContent
ref="editorDom" ref="editorDom"
:editor="editor" :editor="editor"
class="flex flex-col nc-textarea-rich-editor w-full" class="flex flex-col nc-textarea-rich-editor w-full overflow-hidden"
:class="{ :class="{
'ml-1 mt-2.5 flex-grow': props.fullMode, 'ml-1 mt-2.5 flex-grow': props.fullMode,
'nc-scrollbar-md': (!props.fullMode && !props.readonly) || isExpandedFormOpen, 'nc-scrollbar-md': (!props.fullMode && !props.readonly) || isExpandedFormOpen,

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

@ -178,8 +178,8 @@ watch(editEnabled, () => {
v-if="isRichMode" v-if="isRichMode"
class="w-full cursor-pointer" class="w-full cursor-pointer"
:style="{ :style="{
maxHeight: `${height}px !important`, maxHeight: isExpandedFormOpen ? `${height}px !important` : `${25 * (rowHeight || 1)}px !important`,
minHeight: `${height}px !important`, minHeight: isExpandedFormOpen ? `${height}px !important` : `${25 * (rowHeight || 1)}px !important`,
}" }"
@dblclick="onExpand" @dblclick="onExpand"
@keydown.enter="onExpand" @keydown.enter="onExpand"

Loading…
Cancel
Save