Skip to content

Conversation

@azul
Copy link
Contributor

@azul azul commented Dec 20, 2021

This backports the fix as is in stable23 and master.

This fix broke the display of the heading menu (it's not showing above the files in rich workspaces anymore).
We'll furthermore always want to display the menu below the selected line on mobile so it's not overlaying with copy and paste menus.
Will need to fix this in another pr... but for now get stable22 into the state of current development.

@azul
Copy link
Contributor Author

azul commented Dec 20, 2021

#2020 to track the regression.

@azul azul requested a review from juliusknorr December 20, 2021 14:50
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works* 👍

*Fixes what it should fix, breaks what it was expected to break :-)

@azul
Copy link
Contributor Author

azul commented Dec 20, 2021

The build failure is unrelated. Will fix that elsewhere.

azul added 2 commits December 21, 2021 10:37
Add a `position: relative` to `content-wrapper`
to fix misalignment of the menububble.

The menububble has an absolute position
which is calculated by tiptap
based on the position of the highlighted text.

It is styled with `left` and `bottom` attributes.
These are relative to the position of the `.content-wrapper`.

Signed-off-by: Azul <[email protected]>
For the rest of the text we keep the position above.

Signed-off-by: Azul <[email protected]>
@azul azul force-pushed the azul/rebase-stable22-fix-1677-menububble-position branch from 3e5273a to ab0f970 Compare December 21, 2021 09:47
azul and others added 2 commits December 21, 2021 11:06
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 <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
@azul azul force-pushed the azul/rebase-stable22-fix-1677-menububble-position branch from ab0f970 to ffca863 Compare December 21, 2021 10:09
@azul azul merged commit cafe001 into stable22 Dec 21, 2021
@delete-merged-branch delete-merged-branch bot deleted the azul/rebase-stable22-fix-1677-menububble-position branch December 21, 2021 12:43
@skjnldsv skjnldsv mentioned this pull request Jan 7, 2022
9 tasks
@skjnldsv skjnldsv mentioned this pull request Jan 20, 2022
8 tasks
@skjnldsv skjnldsv mentioned this pull request Jan 25, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants