Skip to content

fix: correct workspace sidebar item width clipped by scroller - #79

Merged
everettjf merged 2 commits into
everettjf:mainfrom
AIEPhoenix:main
Apr 10, 2026
Merged

everettjf merged 2 commits into
everettjf:mainfrom
AIEPhoenix:main

Conversation

@AIEPhoenix

Copy link
Copy Markdown
Contributor

Summary

  • Fix sidebar items being partially obscured by the overlay scroller area by reworking cell frame calculation to respect the visible viewport width
  • Migrate hover tracking from per-row SwiftUI @State + .onHover to a unified NSTrackingArea on SidebarOutlineRowView, eliminating redundant hover backgrounds on each content view
  • Simplify ArchiveGroupRowContent layout structure

Test plan

  • Verify sidebar items are fully visible and not clipped by the scroller
  • Hover highlight displays correctly on all row types (workspace, worktree, group, archive)
  • Selection highlight renders properly
  • Resize the sidebar and confirm items adapt to the new width

Items in the workspace sidebar were partially obscured by the overlay
scroller area. Rework cell frame calculation to respect the visible
viewport width and move hover tracking from per-row SwiftUI state to a
unified NSTrackingArea on the row view, which also eliminates redundant
hover backgrounds on each content view.
@everettjf

Copy link
Copy Markdown
Owner

Thanks. Let me fix the conflicts.

Resolve conflict: keep .help(worktreeNote) from main while
preserving the PR's hover-tracking migration to NSTableRowView.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@everettjf
everettjf merged commit 5c7f3c2 into everettjf:main Apr 10, 2026
@everettjf

Copy link
Copy Markdown
Owner

Thank you :)

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.

2 participants