Repository navigation
Keep the server badge in the right column when a workspace has several tabs - #514
Merged
powerfooI merged 1 commit intoOct 30, 2026
Merged
Conversation
This was referenced Oct 29, 2026
powerfooI
approved these changes
Oct 30, 2026
powerfooI
left a comment
Owner
There was a problem hiding this comment.
Reviewed the row layout and its current/all-server callers. The badge now follows the flex-growing tab count, so it stays in the right column. The isolated WorkspaceTree server DOM test and bun run build:web pass; all GitHub checks are green.
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.
In the All servers view, a workspace row with more than one tab shows the server badge directly after the workspace name instead of in the right column. Rows with a single tab are not affected, so badges in the list stop lining up.
The cause is the row layout. With a tab count,
.ws-labelshrinks to its content (flex: 0 1 auto) and.workspace-tab-counttakes the free space (flex: 1 0 auto). The badge was rendered between the two, so it followed the name. This PR moves the badge after the tab count inWorkspaceRow, so the count fills the gap and the badge stays on the right. No CSS changes.Verification
WorkspaceTree.servers.test.ts: the badge follows the tab count (.workspace-tab-count + .workspace-server-badge). It fails onmainand passes with this change.Compatibility
Markup order only, no API or settings changes.