diff --git a/app/components/SimpleEditor/elements/comment/CommentBubble.js b/app/components/SimpleEditor/elements/comment/CommentBubble.js index d741328bf7ad88bafe39470f598e765b02e3d6e3..b9cd134438b43f0f73734e5ddf3b414a9c4fb27c 100644 --- a/app/components/SimpleEditor/elements/comment/CommentBubble.js +++ b/app/components/SimpleEditor/elements/comment/CommentBubble.js @@ -61,10 +61,9 @@ class CommentBubble extends Tool { documentElement = temp[0] const children = temp[0].children overlayContainer = children[1] - fix = 357 } - const documentElementWidth = documentElement.offsetWidth + const documentElementWidth = documentElement.offsetWidth / 1.5 const overlayContainerLeft = overlayContainer.offsetLeft const left = documentElementWidth - overlayContainerLeft - fix diff --git a/app/components/SimpleEditor/notesEditor/notesEditor.scss b/app/components/SimpleEditor/notesEditor/notesEditor.scss index 3703b5413da5b40e85b67c8dd1686aff09ceaea5..77af475db3483255663866ea1998ebffbfebfac2 100644 --- a/app/components/SimpleEditor/notesEditor/notesEditor.scss +++ b/app/components/SimpleEditor/notesEditor/notesEditor.scss @@ -30,6 +30,22 @@ $background: #fff; min-height: 110px; padding: 3% 0 0 3%; + .sc-isolated-node, + .sc-isolated-node.sm-default-style.sm-selected, + .sc-isolated-node.sm-default-style.sm-co-selected, + .sc-isolated-node.sm-default-style.sm-focused { + border-bottom: 0 ; + outline: none; + padding: 0 0 8px 5px; + } + + .sc-isolated-node .sc-text-property::before { + content: ''counter(note-footer)'. '; + counter-increment: note-footer; + left: -40px; + position: absolute; + } + .sc-container-editor { padding: 0; } diff --git a/app/components/SimpleEditor/panes/Notes/notes.scss b/app/components/SimpleEditor/panes/Notes/notes.scss index 2d72962ef684faf4e47ddd4a179549ccc711c959..a41649d47ac2fabd4e60a7be9a631df20df89823 100644 --- a/app/components/SimpleEditor/panes/Notes/notes.scss +++ b/app/components/SimpleEditor/panes/Notes/notes.scss @@ -24,18 +24,4 @@ $light-blue: #e4f0ff; top: -14px; width: 100%; } - .sc-isolated-node, - .sc-isolated-node.sm-default-style.sm-selected, - .sc-isolated-node.sm-default-style.sm-co-selected { - border: 4px solid $light-blue ; - outline: none; - padding: 0 0 8px 5px; - } - - .sc-isolated-node .sc-text-property::before { - content: ''counter(note-footer)'. '; - counter-increment: note-footer; - left: -40px; - position: absolute; - } }