Repository navigation
Keep dialogs on screen when the page is scrolled - #64
Merged
Merged
Conversation
The Shelf backdrop blur made the dialog overlay the containing block for the fixed-position modal inside it. With the overlay sized to the whole page and anchored at its top, the modal centered on the top of the page, so opening one after scrolling (the listing form's image cropper) only dimmed the page while the dialog sat offscreen behind the scroll lock. Pin the overlay to the viewport instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes the report at https://bsky.app/profile/manton.org/post/3n24x267cms2k: uploading an icon or hero on a new listing dims the page but nothing appears.
The Shelf restyle added
backdropFilter: blur(2px)to the dialog overlay. A backdrop filter makes the element the containing block forposition: fixeddescendants, so the modal was centered against the page-sized, top-anchored overlay. Once the page was scrolled (as it is when you reach the Images section), the dialog opened offscreen above the viewport, and the scroll lock kept it unreachable. Dialog, AlertDialog and CommandMenu were affected; Drawer renders its overlay as a sibling and wasn't.The overlay is now
position: fixedand sized to the visual viewport, so the blur stays and the modal centers in view.Checked in Chromium (Playwright) with the page scrolled 1500px: modal top was -1250px before, 250px after.
🤖 Generated with Claude Code