Let a crowded tab bar wrap into more rows instead of scrolling - #151
Draft
porky11 wants to merge 4 commits into
Draft
Let a crowded tab bar wrap into more rows instead of scrolling#151porky11 wants to merge 4 commits into
porky11 wants to merge 4 commits into
Conversation
Author
porky11
marked this pull request as ready for review
July 31, 2026 12:20
emilk
reviewed
Jul 31, 2026
emilk
left a comment
Member
There was a problem hiding this comment.
I really like this feature! But you should add some way to test it (manually), e.g. with a toggle in the advanced example.
Comment on lines
+363
to
+366
| } | ||
|
|
||
| if output.rows == 0 { | ||
| self.scrolling_tab_bar_ui( |
Member
There was a problem hiding this comment.
this feels like a more safe pattern, no?
Suggested change
| } | |
| if output.rows == 0 { | |
| self.scrolling_tab_bar_ui( | |
| } else { | |
| self.scrolling_tab_bar_ui( |
porky11
marked this pull request as draft
July 31, 2026 20:51
Author
|
After adding it to the example, I encountered a weird bug where a red outline appears around the tab bar that appears for a single frame when you set the row count from a value above 1 back to 1 if only if one row is visible anyway. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


A tab bar in a side panel is narrow, and everything stays on one scrolling row — eight tabs in a 220 px panel means four live behind a
▶. Towards #2, but by wrapping rather than a dropdown.One opt-in hook:
The default is today's behaviour exactly, so nothing here is breaking. Above 1, a crowded bar wraps; if it needs more rows than allowed, it falls back to the single scrolling row rather than growing without end.