fix: broken layout during loading on voucher and pool pages#394
fix: broken layout during loading on voucher and pool pages#394williamluke4 merged 1 commit intomainfrom
Conversation
EditableImageOverlay returned a bare fragment when canEdit was false, stripping the relative positioning context and className props that children depend on for absolute positioning. This caused hero sections on voucher and pool pages to break during loading before auth resolved. Also adds skeleton placeholders for async content in both hero sections. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @williamluke4's task in 1m 26s —— View job Code Review
SummaryThe root cause diagnosis is accurate: The skeleton additions are a clean UX improvement that prevent layout shift and show the correct structural shape during loading.
|
Summary
EditableImageOverlayreturned a bare fragment (<>{children}</>) whencanEditwas false, stripping therelativepositioning context andclassNameprops (likeoverflow-hidden rounded-2xl shadow-2xl) that hero section children depend on for absolute positioning. SincecanEditis false during loading before auth resolves, this broke the hero layout entirely until auth loaded.canEdit, only omitting the edit UI when not editable.Test plan
🤖 Generated with Claude Code