-
-
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
Add some style improvements to autocompletions #4456
Conversation
lukebarnard1
commented
Jun 28, 2017
- Fix Wrap/ellipsize autocomplete text correctly #2230 by adding text-overflow: ellipsis to pill spans
- Add padding to pills
- Make sure to only apply horizontal margin of pill children at one level of the DOM tree
- Fix #2230 by adding text-overflow: ellipsis to pill spans - Add padding to pills - Make sure to only apply horizontal margin of pill children at one level of the DOM tree
Whoops, sorry @aviraldg! I butter-fingered there. |
display: flex; | ||
user-select: none; | ||
cursor: pointer; | ||
align-items: center; | ||
color: $primary-fg-color; | ||
} | ||
|
||
.mx_Autocomplete_Completion_pill * { | ||
.mx_Autocomplete_Completion_pill > * { |
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.
Hmm, I slightly question whether being in an autocomplete pill implies things will want this CSS, or whether it would be better to put this on the children directly, but if this works then fine.
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 it was the original intention. I think it's only worth changing if there's a child that doesn't want a margin, which for the time being there isn't 😇
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.
otherwise lgtm
the tests are failing for some totally unrelated reason... I'll try rerunning them |
There seems to be a persistent
|
I'm merging this because it can't have broken the tests 😇 |