Browse Source

fix: Typo

pull/7046/head
Muhammed Mustafa 12 months ago
parent
commit
a62163e8a5
  1. 4
      packages/nc-gui/components/cell/RichText.vue
  2. 4
      packages/nc-gui/components/cell/RichText/SelectedBubbleMenuPopup.vue

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

@ -156,7 +156,7 @@ watch(editorDom, () => {
<EditorContent <EditorContent
ref="editorDom" ref="editorDom"
:editor="editor" :editor="editor"
class="flex flex-col nc-textarea-rich w-full flex-grow" class="flex flex-col nc-textarea-rich-editor w-full flex-grow"
:class="{ :class="{
'ml-1 mt-2.5': props.fullMode, 'ml-1 mt-2.5': props.fullMode,
}" }"
@ -192,7 +192,7 @@ watch(editorDom, () => {
} }
} }
.nc-textarea-rich { .nc-textarea-rich-editor {
.ProseMirror { .ProseMirror {
@apply flex-grow pt-1 border-1 border-gray-200 rounded-lg pr-1 mr-2; @apply flex-grow pt-1 border-1 border-gray-200 rounded-lg pr-1 mr-2;

4
packages/nc-gui/components/cell/RichText/SelectedBubbleMenuPopup.vue

@ -35,7 +35,7 @@ const handleEditorMouseDown = (e: MouseEvent) => {
const isBubble = domsInEvent.some((dom) => dom?.classList?.contains('bubble-menu')) const isBubble = domsInEvent.some((dom) => dom?.classList?.contains('bubble-menu'))
if (isBubble) return if (isBubble) return
const pageContent = document.querySelector('.nc-docs-page-wrapper') const pageContent = document.querySelector('.nc-textarea-rich-editor')
pageContent?.classList.add('bubble-menu-hidden') pageContent?.classList.add('bubble-menu-hidden')
} }
@ -45,7 +45,7 @@ const handleEditorMouseUp = (e: MouseEvent) => {
if (isBubble) return if (isBubble) return
setTimeout(() => { setTimeout(() => {
const pageContent = document.querySelector('.nc-docs-page-wrapper') const pageContent = document.querySelector('.nc-textarea-rich-editor')
pageContent?.classList.remove('bubble-menu-hidden') pageContent?.classList.remove('bubble-menu-hidden')
}, 100) }, 100)
} }

Loading…
Cancel
Save