Skip to content

fix: add a minimum bottom inset to sheets in the browser - #306

Draft
erdemyerebasmaz wants to merge 1 commit into
mainfrom
fix/web-sheet-bottom-pad-299
Draft

fix: add a minimum bottom inset to sheets in the browser#306
erdemyerebasmaz wants to merge 1 commit into
mainfrom
fix/web-sheet-bottom-pad-299

Conversation

@erdemyerebasmaz

Copy link
Copy Markdown
Contributor

Closes #299

This PR adds bottom padding to the bottom sheets in the mobile web browser.

On iOS, the installed app (PWA) shows padding and a painted strip below the sheet content. The browser page has no strip, and the safe-area inset is 0. So the sheet content sat almost flush at the screen bottom.

The sheet padding now has a minimum inset of 1em, in addition to the base 1em. The rule applies only outside the iOS standalone mode. Platforms with a real inset keep their value, because the rule uses the larger of the two (max()).

Note: when the keyboard is open and a field has focus, the padding stays 1em on all platforms. This is not changed. If the button must sit higher above the keyboard, that is a separate small change.

In the mobile browser env(safe-area-inset-bottom) is 0 and the painted
home-indicator strip does not exist (that is ios-standalone-bottom-gap,
iOS native + standalone PWA only), so sheet content sat nearly flush
at the screen bottom while the PWA showed comfortable padding. Floor
the inset term at 1em for every context without the strip; platforms
with a real inset are unchanged because max() keeps the larger value.

Fixes #299
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
breez-glow-web Ready Ready Preview, Comment Jul 22, 2026 4:15pm
breez-sdk-spark-example Ready Ready Preview, Comment Jul 22, 2026 4:15pm
savage-glow-web Ready Ready Preview, Comment Jul 22, 2026 4:15pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web: bottom sheet is missing bottom padding

1 participant