Repository navigation
Conversation
The bottom-sheet form was gated on the iOS user agent, so Android phones got the centered HeroUI modal on the same mobile layout. Key the sheet off the md breakpoint instead, so every mobile viewport shares one dialog strategy. - pad the sheet for the home indicator (env(safe-area-inset-bottom)) - cap it at 85dvh (minus the safe-area padding) and scroll its body; the floating close button stays outside the scroll area - paint the sheet surface (background, radius, safe-area padding) on the inner container, so the rounded corner notches reveal the backdrop instead of a solid strip of background - drop containerClass/modalSizeClass: they were only reachable from the iOS sheet branch and never applied to the HeroUI modal Desktop (>= 768px) keeps the centered HeroUI modal. Co-Authored-By: Claude Code <noreply@anthropic.com>
This branch has not been deployed
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.
Summary
The bottom-sheet form of
DialogandDialogStandaloneonly rendered for iOS user agents. Android phones, and any window narrower than 768px, got the centered HeroUI modal on the same mobile layout.const Dialog = observer(() => { const isPc = useMediaQuery('(min-width: 768px)') - const isIOS = useIsIOS() … - if (isIOS && isOpen) { + if (!isPc && isOpen) { return <BottomSheet /> // custom sheet } return <Modal /> // HeroUI, desktop only from here onenv(safe-area-inset-bottom),0.5remwhere it is0). It needsviewport-fit=coverfrom fix(mobile): size the bottom bar to the iOS tab bar standard and keep content clear of it #1295 to resolve on iOS.85dvh. Its body scrolls and the floating close button stays outside the scroll area.containerClassandmodalSizeClassare gone: they were only reachable from the iOS branch and never applied to the HeroUI modal.Evidence
Chromium at 390×844, Android user agent, new-note dialog,
mainvs this branch:Top-left corner of the sheet, iOS user agent, zoomed. The notch shows a strip of background before and the backdrop after:
Merge Danger
Door: two-way
Blast Radius: Mobile dialogs
Every dialog on both providers switches from the centered modal to the sheet below 768px, on Android and in narrow desktop windows too.
sizeandplacementhave no effect in that range, as on iOS before.🤖 Generated with Claude Code