Skip to content

Commit

Permalink
Limit height of #editor not .content-wrapper
Browse files Browse the repository at this point in the history
In rich workspaces scrolling still made the menu-bubble render at the wrong place.

The element that the absolute position of the menu-bubble is relative to needs to grow
with the text so tiptap can position the menu-bubble correctly.

Now we also do not need the margin bottom anymore.

Signed-off-by: Azul <azul@riseup.net>
  • Loading branch information
azul committed Oct 27, 2021
1 parent 750fe80 commit 0b19101
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 22 deletions.
4 changes: 2 additions & 2 deletions js/editor-rich.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor-rich.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-files.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-files.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-public.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-text.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-text.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-viewer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-viewer.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/components/MenuBubble.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ export default {
&.is-active {
opacity: 1;
visibility: visible;
margin-bottom: -3px;
}

&__button {
Expand Down
5 changes: 2 additions & 3 deletions src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,11 @@ export default {
}

#rich-workspace::v-deep #editor {
overflow: visible !important;
overflow: scroll !important;
max-height: calc(40vh - 40px);
}

#rich-workspace::v-deep .content-wrapper {
overflow: scroll !important;
max-height: calc(40vh - 50px);
padding-left: 10px;
}

Expand Down

0 comments on commit 0b19101

Please sign in to comment.