Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

The PaddingStrip component used ch units in its gutterWidth calculation but lacked the font-monospace class. Since ch units are relative to the font's "0" character width, the padding strip was misaligned with the actual DiffLineGutter which uses font-monospace.

Fix

Add font-monospace to PaddingStrip so ch units match DiffLineGutter.

Verification

The DiffPaddingColors story demonstrates diffswith colored padding (additions at top, deletions at bottom). Before the fix, the colored padding strip edge was misaligned with the line number gutter.


Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

The PaddingStrip component used ch units in gutterWidth calculation
but lacked font-monospace class. Since ch units are relative to the
font's character width, the padding strip was misaligned with the
actual DiffLineGutter which uses font-monospace.

Add font-monospace to PaddingStrip so ch units match DiffLineGutter.

---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking: `high`_
@ammar-agent ammar-agent force-pushed the fix-diff-padding-alignment branch from d54b2dd to ced4729 Compare December 15, 2025 01:23
@ammario ammario merged commit d180c80 into main Dec 15, 2025
20 checks passed
@ammario ammario deleted the fix-diff-padding-alignment branch December 15, 2025 01:29
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