Skip to content

Fix site edit button visibility and overlay - #30

Merged
jasoncrawford merged 1 commit into
mainfrom
fix-edit-site-button
Feb 20, 2026
Merged

jasoncrawford merged 1 commit into
mainfrom
fix-edit-site-button

Conversation

@jasoncrawford

Copy link
Copy Markdown
Collaborator

Summary

  • Site edit button missing #28 (edit button missing on detail page): The pencil button had opacity-0 group-hover:opacity-100 but the site detail page had no group ancestor, so it was permanently invisible
  • Edit from main page is broken #29 (broken edit overlay on main page): The edit form used absolute inset-0 but was nested inside a <div className="absolute top-3 right-3"> wrapper, which became its containing block instead of the card — producing mispositioned overlapping rectangles

Both fixed by adding an overlay prop to EditSiteButton. When overlay is true (main page cards), the component self-positions absolutely and the form fills the card. When false (detail page), both button and form render inline and are always visible.

Test plan

  • Build passes
  • All 88 unit tests pass
  • CI passes

Fixes #28, fixes #29

🤖 Generated with Claude Code

The edit button was invisible on the site detail page because it had
opacity-0 with group-hover but no group ancestor. On the main page,
the edit form overlay was broken because it was nested inside an
absolutely positioned wrapper, making its inset-0 relative to the
wrapper instead of the card.

Add overlay prop to EditSiteButton: when true (card context), the
button positions itself absolutely with hover visibility and the form
overlays the card; when false (detail page), both are inline and
always visible.

Fixes #28, fixes #29

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Feb 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
site-status Ready Ready Preview, Comment Feb 20, 2026 4:03pm

Request Review

@jasoncrawford
jasoncrawford merged commit c3a2eda into main Feb 20, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 77f16482 Deployed Feb 20, 2026 by vercel[bot]
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.

Edit from main page is broken Site edit button missing

1 participant