diff --git a/packages/nc-gui/components/cell/RichText.vue b/packages/nc-gui/components/cell/RichText.vue index 3a4d7051de..f447e9dbb5 100644 --- a/packages/nc-gui/components/cell/RichText.vue +++ b/packages/nc-gui/components/cell/RichText.vue @@ -176,8 +176,16 @@ watch(editorDom, () => { }" tabindex="0" > -
- +
+
+ +
@@ -226,12 +234,12 @@ watch(editorDom, () => { .nc-rich-text-full { @apply px-1.75; .ProseMirror { - @apply !p-2 h-[215px]; + @apply !p-2 h-[min(797px,100vh_-_170px)]; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin !important; - max-height: min(794px, calc(100vh - 170px)); min-height: 215px; + max-height: min(797px, calc(100vh - 170px)); } &.readonly { .ProseMirror { diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index 54ccd18b85..894cbe1029 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -123,7 +123,9 @@ const onMouseMove = (e: MouseEvent) => { position.value = { top: e.clientY - (mousePosition.value?.top || 0) > 0 ? e.clientY - (mousePosition.value?.top || 0) : position.value?.top || 0, left: - e.clientX - (mousePosition.value?.left || 0) > 0 ? e.clientX - (mousePosition.value?.left || 0) : position.value?.left || 0, + e.clientX - (mousePosition.value?.left || 0) > -16 + ? e.clientX - (mousePosition.value?.left || 0) + : position.value?.left || 0, } } @@ -281,7 +283,7 @@ watch(inputWrapperRef, () => { v-model:visible="isVisible" :closable="false" :footer="null" - wrap-class-name="nc-long-text-expanded-modal !z-1151" + wrap-class-name="nc-long-text-expanded-modal" :mask="true" :mask-closable="false" :mask-style="{ zIndex: 1051 }" @@ -298,7 +300,7 @@ watch(inputWrapperRef, () => { >