You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tab wrap - tab should not fill all spare space when wrap to new line #113801
changed the title [-]TabWrap should not fill all Spare space when warp to new line[/-][+]Wrapping tabs: should not fill all Spare space when warp to new line[/+]on Jan 5, 2021
John Murray (@gjsjohnmurray) this is a good idea but to my knowledge there is no CSS rule that we could leverage here because the wrapping is entirely done via the flex layout of the browser. Best we can do is control the growing for the last tab, but not all tabs of the last row.
sneakyfish5 and DynDux fyi for CSS tricks maybe I am missing something here.
sneakyfish5DynDux given we also have #113926 as an issue I wonder if we should revisit the editor actions toolbar altogether when tabs wrap: what if we simply treat the editor actions toolbar as a "tab", always being the last "tab" in the strip. This would:
avoid having to use the margin-right hack an absolute positioning as the actions would then always appear last
via 3c62a8f the growing of tabs now only applies to the last tab in a row (except for the last row) and the overall result is a much calmer tab sizing behaviour when tabs wrap:
Activity
bpasero commentedon Jan 5, 2021
heartacker the reason tabs currently grow is the following pattern that imho is a bit unpleasant otherwise:
As you can see each row would have an uneven gap on the right hand side.
As a workaround, if you configure
"workbench.editor.tabSizing": "shrink"tabs will have a fixed width and not grow:[-]TabWrap should not fill all Spare space when warp to new line[/-][+]Wrapping tabs: should not fill all Spare space when warp to new line[/+]gjsjohnmurray commentedon Jan 5, 2021
Benjamin Pasero (@bpasero) how about making them grow on every line except for the last one?
bpasero commentedon Jan 5, 2021
John Murray (@gjsjohnmurray) this is a good idea but to my knowledge there is no CSS rule that we could leverage here because the wrapping is entirely done via the
flexlayout of the browser. Best we can do is control the growing for the last tab, but not all tabs of the last row.sneakyfish5 and DynDux fyi for CSS tricks maybe I am missing something here.
bpasero commentedon Jan 6, 2021
From #106448 (comment)
jmannanc commentedon Jan 7, 2021
Here's an accompanying visual for DynDux's proposed change:
heartacker commentedon Jan 7, 2021
great
bpasero commentedon Jan 7, 2021
Nice, I suggest to continue via a PR.
bpasero commentedon Jan 7, 2021
sneakyfish5 DynDux given we also have #113926 as an issue I wonder if we should revisit the editor actions toolbar altogether when tabs wrap: what if we simply treat the editor actions toolbar as a "tab", always being the last "tab" in the strip. This would:
margin-righthack an absolute positioning as the actions would then always appear lastThoughts?
PS: this solution would probably not work for when wrapping is disabled, so it has to be a custom solution only when wrapping is on.
11 remaining items
bpasero commentedon Feb 24, 2021
Cassey Lottman (@clottman) yeah that should still work, are you using stable or insiders of VSCode?
clottman commentedon Feb 24, 2021
I'm on stable, on mac. Here's some info about my setup:
bpasero commentedon Feb 24, 2021
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/
clottman commentedon Feb 25, 2021
Huh, my computer updated this morning from Mac OS 11.1 to mac OS 11.2.1 and it works now, without trying the nightly insider build. Strange.
Thanks for your help!
bpasero commentedon Mar 1, 2021
via 3c62a8f the growing of tabs now only applies to the last tab in a row (except for the last row) and the overall result is a much calmer tab sizing behaviour when tabs wrap:
Before

After
