Skip to content

fix(macos): draw diff line bands as square rows - #2196

Merged
LHagfoss merged 1 commit into
mainfrom
fix/macos-diff-bands
Oct 20, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
fix/macos-diff-bands

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

Added/removed line bands in tool diffs were drawn as the colour background of a hidden Text, which macOS 27 renders rounded — every changed line became its own pill. Now each band is a Rectangle fill, so consecutive changes form one square block (GitHub-style).

Verified in the debug app with a synthetic edit diff (screenshot before: 8 separate rounded red pills; after: one continuous block).

https://claude.ai/code/session_01SZ3DB3WXnKyfSuHppCNJFg

Each added or removed line's colour was the background of a hidden line
of text, which current macOS draws rounded, so a block of changes read as
a stack of pills. The band is now a plain rectangle per line, and a run
of changed lines forms one continuous block.

Claude-Session: https://claude.ai/code/session_01SZ3DB3WXnKyfSuHppCNJFg
@github-actions github-actions Bot added the fix A bug fix label Oct 20, 2026
@LHagfoss
LHagfoss merged commit 7caeb45 into main Oct 20, 2026
7 checks passed
@LHagfoss
LHagfoss deleted the fix/macos-diff-bands branch October 20, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant