Skip to content

Tab wrap - tab should not fill all spare space when wrap to new line #113801

Closed

Description

@heartacker

image

The latest row should have consistent behavior with the single row

Activity

  1. added
    under-discussion
    workbench-tabs
    on Jan 5, 2021
  2. bpasero commented on Jan 5, 2021

    @bpasero
    Contributor

    heartacker the reason tabs currently grow is the following pattern that imho is a bit unpleasant otherwise:

    image

    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:

    image

  3. 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
  4. gjsjohnmurray commented on Jan 5, 2021

    @gjsjohnmurray
    Contributor

    Benjamin Pasero (@bpasero) how about making them grow on every line except for the last one?

  5. bpasero commented on Jan 5, 2021

    @bpasero
    Contributor

    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.

  6. bpasero commented on Jan 6, 2021

    @bpasero
    Contributor
  7. jmannanc commented on Jan 7, 2021

    @jmannanc
    Contributor

    Here's an accompanying visual for DynDux's proposed change:

    sMfvSBbQ8t

  8. heartacker commented on Jan 7, 2021

    @heartacker
    ContributorAuthor

    Here's an accompanying visual for DynDux's proposed change:

    sMfvSBbQ8t

    great

  9. bpasero commented on Jan 7, 2021

    @bpasero
    Contributor

    Nice, I suggest to continue via a PR.

  10. added
    help wanted
    on Jan 7, 2021
  11. bpasero commented on Jan 7, 2021

    @bpasero
    Contributor

    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:

    Thoughts?

    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.

  12. added
    feature-request
    and removed
    under-discussion
    on Jan 10, 2021
  13. 11 remaining items

  14. bpasero commented on Feb 24, 2021

    @bpasero
    Contributor

    Cassey Lottman (@clottman) yeah that should still work, are you using stable or insiders of VSCode?

    recording (1)

  15. clottman commented on Feb 24, 2021

    @clottman

    I'm on stable, on mac. Here's some info about my setup:

    Version: 1.53.2
    Commit: 622cb03f7e070a9670c94bae1a45d78d7181fbd4
    Date: 2021-02-11T11:45:54.515Z
    Electron: 11.2.1
    Chrome: 87.0.4280.141
    Node.js: 12.18.3
    V8: 8.7.220.31-electron.0
    OS: Darwin x64 20.2.0
    

    image

  16. bpasero commented on Feb 24, 2021

    @bpasero
    Contributor

    Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

  17. clottman commented on Feb 25, 2021

    @clottman

    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!

  18. bpasero commented on Mar 1, 2021

    @bpasero
    Contributor

    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
    tabs-before

    After
    tabs-after

  19. added
    verification-needed
    author-verification-requested
    on Mar 19, 2021
  20. added
    on-release-notes
    on Mar 25, 2021
  21. locked and limited conversation to collaborators on Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

author-verification-requestedfeature-requesthelp wantedon-release-notesverification-neededverifiedworkbench-tabs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions