diff --git a/app/assets/stylesheets/common/rich-editor/rich-editor.scss b/app/assets/stylesheets/common/rich-editor/rich-editor.scss index 35bb3cde02e..0409c7b18b6 100644 --- a/app/assets/stylesheets/common/rich-editor/rich-editor.scss +++ b/app/assets/stylesheets/common/rich-editor/rich-editor.scss @@ -7,6 +7,7 @@ overflow-x: hidden; display: flex; height: 100%; + position: relative; } .ProseMirror { @@ -197,7 +198,6 @@ // stylelint-disable-next-line no-duplicate-selectors .ProseMirror { - position: relative; word-wrap: break-word; white-space: break-spaces; } @@ -259,7 +259,7 @@ li.ProseMirror-selectednode::after { .ProseMirror-gapcursor { display: none; pointer-events: none; - position: absolute; + position: sticky; } .ProseMirror-gapcursor::after { diff --git a/plugins/footnote/assets/stylesheets/footnotes.scss b/plugins/footnote/assets/stylesheets/footnotes.scss index dce67b05723..cbbb7519f63 100644 --- a/plugins/footnote/assets/stylesheets/footnotes.scss +++ b/plugins/footnote/assets/stylesheets/footnotes.scss @@ -141,6 +141,7 @@ padding-top: 0.5rem; background-color: var(--primary-50); border-radius: var(--d-border-radius); + z-index: z("modal", "tooltip"); &:focus-within { outline: 1px solid var(--primary-low);