-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Stop URl preview from covering message box #29215
Conversation
Fixes element-hq#23874 by adding a bit of padding. 1em should be sufficient to prevent the browser's URl preview from covering the entry box.
see also #29213 |
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.
@edent Hi, thanks for the contribution!
We checked with our design team and we want to go instead with 8px
. With char likes g, f, j
etc we want more space to make it breathe more.
Also, we are using our design system tokens for spacing. (Old components like this one were written before we moved to a design system)
After that, the playwright tests need to be updated since the UI has changed.
Thank you and let me know if you need help.
@@ -35,6 +35,7 @@ Please see LICENSE files in the repository root for full details. | |||
width: 100%; | |||
flex: 0 0 auto; | |||
margin-right: 2px; | |||
padding-bottom: 1em; |
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.
padding-bottom: 1em; | |
padding-bottom: var(--cpd-space-2x); |
Are you sure that 8px is a suitable value? Not everyone's OS uses 8px as the height of characters - that's why I specifically chose an em unit. Both Slack and Discord uses 24px for its padding between text entry and the bottom of the screen. That said, this is your codebase, please proceed as you see fit. |
Right, but try increasing your browser font size, that'll make the url tooltip larger and overlap again. |
@t3chguy Good point but if you change the font size in the user settings, the padding becomes enormous with |
I just wanted to report the bug. I'll unsubscribe now. Feel free to fix it in whatever way makes sense for your codebase. |
0ece262
to
553343c
Compare
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.
After internal discussion with the team we will stay with your solution of 1em
. We will favorise the font size settings of the browser instead of element font size settings (accessibility matter).
Fixes #23874 by adding a bit of padding.
1em should be sufficient to prevent the browser's URl preview from covering the entry box.
Before
After
Checklist
public
/exported
symbols have accurate TSDoc documentation.