Skip to content

Stop reserving hover action space in sidebar rows (851-3667) - #920

Merged
pondorasti merged 1 commit into
mainfrom
codevisor/stop-reserving-hover-action-space-in-sidebar-rows
Oct 29, 2026
Merged

pondorasti merged 1 commit into
mainfrom
codevisor/stop-reserving-hover-action-space-in-sidebar-rows

Conversation

@pondorasti

Copy link
Copy Markdown
Member

Fixes 851-3667

#853 sized a sidebar workspace row's trailing slot to its hover actions (Pin and Archive) even when the row wasn't hovered. Titles and subtitles truncated early next to empty space. That minWidth reservation is gone. A row now shows its properties (PR badge, machine icon) at their natural width and swaps them for the hover actions only while hovered, so on hover the text gets narrower and truncates more. The rest of #853 and #865 is kept: Pin/Archive replace the properties on hover, with no cross-fade.

properties is now a @ViewBuilder, not an HStack. A row with no properties adds no empty trailing slot or spacing.

Shared row engine: the Code sidebar and nested subagent rows both render SidebarWorkspaceRow, so they both get this fix. The Chat sidebar's bot rows (BotConversationRow) and the inspector Agents rows from #903 (which use only SidebarWorkspaceRowLabel) never reserved this space, so they needed no change.

Tophat (macOS dev app): a workspace renamed to use-the-arrow-icons-for-the-file-tree-icons, with a machine icon.

  • Not hovered: use-the-arr…le-tree-icons before, use-the-arro…-file-tree-icons after. The title now runs up to the machine icon.
  • Hovered: the same before and after. Pin and Archive take their space while shown.

The before/after screenshots are on 851-3667. Computer Use can't hold a hover, so the "before, hovered" shot came from a temporary local override (not in this diff) that makes HoverableRow report hovered. The "after, hovered" shot is a real pointer hover.

🤖 Generated with Claude Code

#853 kept a sidebar workspace row's trailing slot as wide as its hover
actions even when the row wasn't hovered, so titles and subtitles
truncated early next to empty space. The row now shows its properties at
their natural width and swaps them for Pin and Archive only while hovered.

Fixes 851-3667

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@pondorasti
pondorasti merged commit 6b9d1f9 into main Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant