fix: Safari upload + wallet popup above side panel (#1866)#2040
fix: Safari upload + wallet popup above side panel (#1866)#2040webguru-hypha wants to merge 4 commits intomainfrom
Conversation
- Stretch PreviewOverlay to fill dropzone (inset-0) so WebKit does not shrink layout to overlay content width - Position preview image absolute with full size; drop flex centering on AspectRatio root; add w-full min-w-0 for flex parents - Declare @radix-ui/react-aspect-ratio on @hypha-platform/ui Closes #1866 Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughAdded Radix AspectRatio dependency and adjusted lead-image upload UI: dropzone switched to block full-width layout, preview image made absolutely positioned with non-interactive overlay, and PreviewImg gained a customizable Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Parallel flex children paint in DOM order; aside after main caused fixed UI from the main subtree (e.g. extension / wallet prompts) to sit under the side panel when z-index ties. Render aside first with flex-row-reverse to preserve visual order while fixing stacking. Refs #1866 Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
Clarify flex-row-reverse layout is spec-defined and not Safari-specific. Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
49405e8 to
530e64c
Compare
Revert flex-row-reverse + aside-first parallel layouts: they made the main column paint after the aside so fixed content (search, cards) appeared on top of Create Space. Restore children-then-aside and give SidePanel z-30 (above MenuTop z-20) so the drawer consistently covers page content. Refs #1866 Co-authored-by: webguru-hypha <webguru-hypha@users.noreply.github.com>
Summary
Addresses hypha-dao/hypha-web#1866.
1. Safari lead image upload (
fix(ui))UploadLeadImage: overlay fills dropzone, preview absolutely positioned,w-full min-w-0on aspect-ratio root;@radix-ui/react-aspect-ratiodeclared on@hypha-platform/ui.2. Side panel stacking (updated approach)
The earlier
flex-row-reverse+ aside-first change was reverted (fea0841a0). It fixed one stacking case but caused main page fixed content (search bar, cards) to paint on top of the Create Space panel because the main column came later in the DOM.Current fix: restore
{children}then{aside}in parallel-route layouts and setz-30onSidePanelso it sits above the app header (MenuTopusesz-20) and consistently covers the page behind it in Safari and other browsers.classNameonSidePanelstill merges viacn()(e.g. signupz-50).Commits
733000e9e—fix(ui): correct lead image upload layout in Safarid20567835—fix(web): stack main column above aside for wallet popups(superseded in part by revert below)530e64cec—docs(web): note aside row-reverse stacking is cross-browser(historical; row-reverse reverted)fea0841a0—fix(epics): stack side panel above main with z-indexVerification
npx nx run @hypha-platform/epics:lint,web:lintas neededManual: Safari — Create Space panel should cover search/cards; lead image upload behaviour unchanged from UI fix.
Closes #1866
Summary by CodeRabbit
New Features
Style