Skip to content

fix(ai): un-clickable X on the account modal + contain the chevron#53

Merged
ndemianc merged 1 commit into
developfrom
fix/account-modal-close-and-size
Jul 26, 2026
Merged

fix(ai): un-clickable X on the account modal + contain the chevron#53
ndemianc merged 1 commit into
developfrom
fix/account-modal-close-and-size

Conversation

@ndemianc

Copy link
Copy Markdown
Contributor

Two live-feedback fixes on the account modal (follows #51/#52).

The X close button was dead — a regression from the full-bleed hero (#51)

.ovclose is a sibling that renders before acctBody, so the full-bleed hero (acctBody's first child) painted over it and swallowed the click — the onclick handler was fine, it just never received the event.

Fix: z-index: 3 on the classic card's .ovclose (it's position: absolute inside a position: relative .acctcard, so the z-index lifts it above the hero), plus pointer-events: none on the decorative hero so it never intercepts clicks meant for the content.

Chevron contained — no bleed on any side

Switched the hero back to place-items: center and shrank the mark 182 → 150px so the whole chevron + portals sit fully inside the hero: no top clip against the rounded corner, no side or bottom bleed.

Verified: scripts parse; webviewCss + full gate green. One file, +6/−5.
Preview: https://claude.ai/code/artifact/0c955831-6ce9-444f-95b2-c211b8706e88

🤖 Generated with Claude Code

…ount modal

Two follow-ups from live feedback:

- The X close button was dead. The full-bleed hero (acctBody's first child) paints AFTER the
  .ovclose sibling and covered it, swallowing the click. Fix: z-index:3 on the classic card's
  .ovclose (it's absolute inside a position:relative .acctcard) so it sits above the hero, plus
  pointer-events:none on the decorative hero so it never intercepts. The onclick handler was fine.

- Shrink the mark to fit fully inside the hero (place-items:center, 182->150px) so it no longer
  bleeds off any edge — no top clip, no side/bottom bleed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 26, 2026 03:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes two UI regressions in the LevelCode AI webview account modal by ensuring the close (“X”) button remains clickable above the decorative hero and by resizing/recentering the chevron hero so it no longer bleeds/clips against the modal edges.

Changes:

  • Raised .acctcard.classic .ovclose above the full-bleed hero via z-index: 3 so the close button receives clicks.
  • Prevented the decorative hero from intercepting pointer events via pointer-events: none.
  • Recentered and resized the portal chevron mark (182px → 150px) and adjusted hero layout to contain all artwork within the hero area.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ndemianc
ndemianc merged commit a821e3c into develop Jul 26, 2026
2 checks passed
@ndemianc
ndemianc deleted the fix/account-modal-close-and-size branch July 26, 2026 03:34
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