Skip to content

fix: equation card accent rail no longer pokes past rounded corner (#3)#7

Merged
NagariaHussain merged 1 commit into
developfrom
fix/equation-card-accent-rail
Jun 4, 2026
Merged

fix: equation card accent rail no longer pokes past rounded corner (#3)#7
NagariaHussain merged 1 commit into
developfrom
fix/equation-card-accent-rail

Conversation

@NagariaHussain
Copy link
Copy Markdown
Contributor

What

Fixes the UI glitch in the accounting-equation hero card where the blue accent rail's square corners protruded past the card's rounded (14px) corners.

Closes #3

Cause

The .ll-equation::before rail was positioned top:0; bottom:0 with square corners. At the rounded top-/bottom-left corners the rail's square corner sat outside the card's curve, and overflow:hidden on the parent doesn't clip the pseudo-element's corner cleanly. A matching border-radius doesn't help either — on a 4px-wide rail a 14px radius clamps down to ~4px and stays effectively square.

Fix

Inset the rail vertically by the card radius (top:14px; bottom:14px) so it lives entirely within the straight part of the left edge, never entering the rounded-corner zone. Added a small rounded right cap (border-radius: 0 3px 3px 0).

Verification

agent-browser on ledger.localhost (/app/ledger-lab):

Before After
Dark rail's square top pokes above the corner rail clean, starts below the curve
Light same poke-out (original report) clean

Both top-left and bottom-left corners verified clean in light and dark themes.

🤖 Generated with Claude Code

Task: fix UI glitch in the accounting-equation hero card where the blue
accent rail's square top/bottom corners protruded past the card's 14px
rounded corners (issue #3). Reproduced in both light and dark themes.

Key decision: inset the `::before` rail vertically by the card radius
(top/bottom: 14px) so it stays within the straight part of the left
edge, rather than relying on `overflow:hidden` (which doesn't clip the
pseudo-element's corner cleanly) or a matching border-radius (which
clamps to ~4px on the 4px-wide rail and stays effectively square).
Added rounded right end (border-radius: 0 3px 3px 0) for a clean cap.

Files changed: ledger_lab/ledger_lab/page/ledger_lab/ledger_lab.js

Verified: agent-browser on ledger.localhost (/app/ledger-lab), top- and
bottom-left corners clean in light + dark mode.

Notes for next iteration: remaining open issue is #5 (basic filters in
transactions list — show-cancelled toggle + root-type filter).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@NagariaHussain NagariaHussain merged commit 9d9c610 into develop Jun 4, 2026
4 checks passed
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.

UI issue in accounting equation card

1 participant