fix(ai): un-clickable X on the account modal + contain the chevron#53
Merged
Conversation
…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>
Contributor
There was a problem hiding this comment.
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 .ovcloseabove the full-bleed hero viaz-index: 3so 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)
.ovcloseis a sibling that renders beforeacctBody, so the full-bleed hero (acctBody's first child) painted over it and swallowed the click — theonclickhandler was fine, it just never received the event.Fix:
z-index: 3on the classic card's.ovclose(it'sposition: absoluteinside aposition: relative.acctcard, so the z-index lifts it above the hero), pluspointer-events: noneon 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: centerand shrank the mark182 → 150pxso 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