-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Realign slash command content widget in panel chat #190053
Conversation
@@ -4,7 +4,8 @@ | |||
*--------------------------------------------------------------------------------------------*/ | |||
|
|||
.chat-slash-command-content-widget { | |||
padding: 0 3px 1px 3px; | |||
padding: 1px 2px 0px 1px; |
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.
Possible to do this without changing the internal cell padding?
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.
Sorry I don't follow, can you elaborate?
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.
Sorry, wrong word choice above. This changes the padding of the pill itself which might make it look lopsided the top has visibly more padding than the bottom or vice versa. Note the extra top space in the pill pictured in the issue for createWorkspace
.
Ideally the pill, pill text, and input text can all be vertically dead center and then we don't have to worry about lopsided padding.
IIRC you can change the input editor text position with some editor API? Happy to checkout and take a look if you'd like.
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.
I think the issue is that the input text outside the pill is itself 1px below dead center, which is noticeable if you enter some text and hit ctrl+a (shown below), so if we want the text inside the pill to be vertically centered, it will be misaligned with the other text in the input. IMO it's more important that the text inside the pill is aligned with text outside the pill, I pushed a change which tries to do this:
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.
Fix #190039