-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix link menu positioning #1045
Conversation
/backport to stable19 |
/backport to stable18 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I had a look both at the code and tested it (rebased on current master) locally. The height change makes sense to me.
I was not able to reproduce the alignment issue discussed in #600 - with current master.
Maybe this has already been fixed. The changes in here do not seem to target it anyway. Just the branch name made me read the bug description and see if it had any effect.
edit: looking more closely it does seem to have the effect that the left edge of the popup does not get cut off anymore in the files workspace. Tested with chromium and firefox on linux.
Yeah #600 was somehow mitigated on master/stable20 since with the two buttons the initial width of the button container was higher, therefore the initial position calculations work better when switching to the input for links. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Would be even better with white background for the menu and the divider in color-border, but we can also do that separately. :)
@juliushaertl needs rebase, but then let’s get it in? :) |
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
ed8aea1
to
9b84350
Compare
The backport to stable19 failed. Please do this backport manually. |
The backport to stable18 failed. Please do this backport manually. |
🙄 |
Summary
Fixes some styling issues with the menu bubble positioning and giving it a fixed height of 44px since it otherwise would change height when switching to the link input.
I'm not entirely sure about the 44px height since it looks kind of huge compared to the rest, but for now I picked this since those are buttons and we have a minimum click target of 44px
Before
After
Notes for backporting