Open
Description
As the extension is currently implemented, when using a multi-line tab bar, tab widths function as follows:
- If the tabs can all fit on one line at their max width value for tabs, then they are rendered on a single line at that width, typically leaving some empty space on the right.
- If the tabs cannot fit on one line at their max width value, but /can/ fit in one line at their min width value, then they are rendered on a single line at the width that would cause them to split the horizontal width of the tab bar equally.
- If the tabs cannot fit on one line at their max width or min width values, then they are rendered on multiple lines at their min width value; this generally leaves empty space on the right, especially when the browser's width is slightly less than a multiple of the minimum tab width.
In the third case, I think it would look more aesthetically pleasing if the tabs were instead rendered at the same width as they would be for the largest number of tabs that qualifies for the second case (rather than the minimum width for tabs). A formula such as min-tab-width + floor( (tab-bar-width % min-width) / floor(tab-bar-width / min-tab-width) )
should work for that case, I believe (this tab width should be set when tab-count * min-tab-width
exceeds tab-bar-width
).
Metadata
Metadata
Assignees
Labels
No labels