Skip to content
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

suggest: fix handling around long lines #91781

Merged
merged 1 commit into from Feb 28, 2020
Merged

Conversation

connor4312
Copy link
Member

@connor4312 connor4312 commented Feb 28, 2020

See: #90552 (comment)

overflow: hidden should have been overflow: auto. Auto displays a
scrollbar which, depending on the platform, can make the items too high.

image

(manually moving the items up shows the scrollbar)

Also fixes names being cut off (see the loooong) cutoff in the linked
issue. flex-shrink:0 is on the label, with a max-width of 100%. But
on the left there was the 18px icon, so the right side of the label was
18px off the end and not visible. Fix it by moving the icon outside of
the .left side. We could alternately calc(100% - 18px), but since
the icon was not a hardcoded size in CSS I didn't want to implicitly
depend on that.

image

See: #90552 (comment)

`overflow: hidden` should have been `overflow: auto`. Auto displays a
scrollbar which, depending on the platform, can make the items too high.

Also fixes names being cut off (see the loooong) cutoff in the linked
issue. `flex-shrink:0` is on the label, with a max-width of 100%. But
on the left there was the 18px icon, so the right side of the label was
18px off the end and not visible. Fix it by moving the icon outside of
the `.left` side. We could alternately `calc(100% - 18px)`, but since
the icon was not a hardcoded size in CSS I didn't want to implicitly
depend on that.
@connor4312 connor4312 added candidate Issue identified as probable candidate for fixing in the next release suggest IntelliSense, Auto Complete labels Feb 28, 2020
@octref
Copy link
Contributor

octref commented Feb 28, 2020

LGTM, thanks!

@octref octref merged commit 3d23d67 into master Feb 28, 2020
@octref octref deleted the fix/long-suggestion-handling branch February 28, 2020 20:31
@octref octref self-assigned this Feb 28, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
candidate Issue identified as probable candidate for fixing in the next release suggest IntelliSense, Auto Complete
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants