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

Add gutter to Command Palette to avoid overlapping with scrollbar #6965

Merged
1 commit merged into from
Jul 17, 2020

Conversation

jtippet
Copy link
Contributor

@jtippet jtippet commented Jul 17, 2020

The command palette has some content that can overlap with its
scrollbar. This PR adds a 16px gutter for the scrollbar, as recommended
here.

Detailed Description of the Pull Request / Additional comments

You can repro the overlap in the default configuration by grabbing the
scrollbar with the mouse pointer. But there's an accessibility option
that makes this more obvious: Settings > Display > Automatically hide
scroll bars. With that option enabled, the text is always
overlapping.

The gutter does look slightly larger than it needs to be when the
scrollbar is thin or completely hidden. Dynamic reflow may help, but
unfortunately, I don't know enough XAML to wire that up. MUX has a
promising visual state named ScrollBarsSeparatorExpanded, so the
scientists suggest we could, while the designers are still pondering
whether we should.

Validation Steps Performed

Old appearance:
image

New appearance with fat scrollbars:
image

New appearance with thin scrollbars:
image

New appearance with no scrollbar:
image

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me, thanks!

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm perfectly fine with this. IMO it looks better even in the no-scrollbars mode

@DHowett
Copy link
Member

DHowett commented Jul 17, 2020

@msftbot merge this in 10 minutes

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jul 17, 2020
@ghost
Copy link

ghost commented Jul 17, 2020

Hello @DHowett!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Fri, 17 Jul 2020 19:12:19 GMT, which is in 10 minutes

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh apparently ctrl+enter is "Comment" now?

@ghost ghost merged commit 0c3841a into microsoft:master Jul 17, 2020
@jtippet jtippet deleted the user/jtippet/palette_scrollbar branch July 17, 2020 19:31
@ghost
Copy link

ghost commented Aug 26, 2020

🎉Windows Terminal Preview v1.3.2382.0 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge Marked for automatic merge by the bot when requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants