Commit f048b3f
fix: render preview modal via React portal to escape navbar stacking context
The navbar uses backdrop-blur-md which creates a CSS stacking context.
Any position:fixed child is clipped to that context instead of the
viewport, making the modal invisible. Using createPortal to mount the
modal directly on document.body ensures it always renders above
everything regardless of ancestor transforms or filters.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c7df5e6 commit f048b3f
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
369 | | - | |
| 370 | + | |
| 371 | + | |
370 | 372 | | |
371 | 373 | | |
0 commit comments