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
ref="editorDom"
: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="{
'ml-1 mt-2.5 flex-grow': props.fullMode,
'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"
class="w-full cursor-pointer"
:style="{
maxHeight: `${height}px !important`,
minHeight: `${height}px !important`,
maxHeight: isExpandedFormOpen ? `${height}px !important` : `${25 * (rowHeight || 1)}px !important`,
minHeight: isExpandedFormOpen ? `${height}px !important` : `${25 * (rowHeight || 1)}px !important`,
}"
@dblclick="onExpand"
@keydown.enter="onExpand"

Loading…
Cancel
Save