Remove gap on the right side of Overview tab - #128
Conversation
| <main | ||
| style={ { | ||
| scrollbarGutter: 'stable', | ||
| } } |
There was a problem hiding this comment.
auto is the default value of scrollbarGutter. With minimum height fix in #124, reserving scrollbarGutter space with stable should no longer be needed on Windows. macOS should not be affected.
sejas
left a comment
There was a problem hiding this comment.
This Gutter was aded on purpose on https://github.com/Automattic/dotcom-forge/issues/5896 . The intention was to avoid shifting the start button when the scroll bar appears.
I tried to make appear the scroll bar in the "main" window and I couldn't. So I guess it's fine to remove the Gutter stable.
Here is how it looks for me:
@derekblank , what do you think about removing the Windows from this PR title? My reasoning is that this PR affects all platforms.
|
Thanks for taking a look @sejas!
Thanks for the context - I did check the history of when the
Agreed, updated. 👍 The gap only appears on Windows, but I did also test on macOS to check for unintended effects. |
|
@derekblank will it still work fine if Settings gets scrollbar at some point? |
|
If some section displays a scrollbar , then we will probably need to add the |
@wojtekn When testing this today, I noted that if a scrollbar is displayed on Windows, it would be considered part of the app-draggable area -- interacting with the scrollbar would drag the app window, no matter if Below is an example of adding some arbitrary content to make the Settings screen scroll on the y-axis to check the behavior. I am scrolling the Settings tab using mouse gestures on the window, but interacting with the scrollbar drags the window instead. (Note that this video is just a hypothetical example for a future case, and is not present on scrollbar.movIf we expect the Settings screen to grow vertically and thus be able to scroll in the future (or any tab, for that matter), we should create an issue. |
|
@derekblank, thanks for testing it. Let's go ahead and leave it for now, and we can address it when the tab content grows enough to require a scrollbar. I think what @sejas proposes above would be a way to go - it seems that in such a case, we should scroll only the tab content and not the whole main area:
|
Resolves Automattic/dotcom-forge#6993
Proposed Changes
Removes gap on right side of Windows screen due scrollbarGutter style values.
Testing Instructions
Before
After
Pre-merge Checklist