Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

When a diff starts with an addition or ends with a deletion, the top/bottom padding of the diff container now matches that line's background color (green for additions, red for deletions).

Previously, the container used a neutral background for all padding regardless of the first/last line types, causing a visual inconsistency.

Changes

  • Added firstLineType/lastLineType props to DiffContainer
  • Replaced py-1.5 padding with separate colored padding strips
  • Updated DiffRenderer and SelectableDiffRenderer to pass line types
  • Added DiffPaddingColors story to capture the behavior

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.

@ammar-agent ammar-agent force-pushed the diffs-cayn branch 4 times, most recently from 6d1c98a to 425ce0b Compare December 14, 2025 20:23
When a diff starts with an addition or ends with a deletion, the
top/bottom padding of the diff container now matches that line's
background color (green for additions, red for deletions).

Previously, the container used a neutral background for all padding
regardless of the first/last line types, causing a visual inconsistency.

Changes:
- Added firstLineType/lastLineType props to DiffContainer
- Replaced py-1.5 padding with separate colored padding strips
- Updated DiffRenderer and SelectableDiffRenderer to pass line types
- Added DiffPaddingColors story to capture the behavior

---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking: `high`_
@ammario ammario merged commit cd7fb3d into main Dec 14, 2025
20 checks passed
@ammario ammario deleted the diffs-cayn branch December 14, 2025 20: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