Repository navigation
Keep the top of the installed app clear of the iOS 26 edge blur - #12
Merged
Merged
Conversation
Since iOS 26, home-screen web apps get a Liquid Glass blur over about 40 px below the status bar, which washed out screen titles and the first tab on the iPad. Nothing in the page can turn it off, so on iPhone and iPad, when installed, the app now starts 28 px lower (not on landscape phones, where the status bar is hidden). Browsers are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
mbryantms
added a commit
to mbryantms/folio
that referenced
this pull request
Oct 4, 2026
…the installed app (#999) After #994 and #995 the installed app on iPadOS still showed a fade over the top ~40pt of the web view: the library header icons and the reader chrome (back arrow, page counter) rendered dimmed. That fade is the system's Liquid Glass scroll-edge ramp, drawn ABOVE the web view below the status bar. Opaque edge bars and the opaque `black` status-bar style don't remove it (both already in place); no CSS or meta tag turns it off. Projects that verified on devices (e.g. mval23/remy#12 on iPad, xdoubleu/tools.xdoubleu.com#1987) found one fix: keep content out of it. - globals.css: `--edge-ramp` (2rem in the installed iOS/iPadOS app via `@supports (-webkit-touch-callout: none)` + `display-mode: standalone` or `[data-standalone]`; 0 on landscape phones and everywhere else) and `--top-inset = --safe-top + --edge-ramp`. `--topbar-h` and the reader's `--reader-top` include it. - Top bars and top-anchored surfaces pad by `--top-inset`: library and admin headers + nav sheets, reader chrome + loading skeleton, peek banner, skip links, pull-to-refresh, StatusScreen, cover viewer, filter sheet and the sheet close button. The added band is painted in each bar's own solid colour, so the ramp over it is invisible and the controls sit below it. Reader pages start below the black status-bar backing, which now spans the ramp too. - SafeAreaProbe marks `<html data-standalone>` from navigator.standalone as a fallback for launches where the display-mode query doesn't match. - edge-effect test pins the clearance and that edge bars never pad by the raw `--safe-top`. Browser tabs, desktop and Android are unchanged (`--edge-ramp` is 0).
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.
Problem
Since iOS/iPadOS 26, web apps added to the home screen get a Liquid Glass blur, drawn by the system above the web view, over about 40 pt below the status bar. On the iPad it washed out the screen titles and the first tab in the rail. Nothing in CSS or meta tags turns it off.
Fix
--inset-topinstyles.css:env(safe-area-inset-top)normally. On iPhone and iPad (@supports (-webkit-touch-callout: none)), when installed (display-mode: standalone), it adds 28 px, so the header starts below the blur. Landscape phones are excluded because iOS hides the status bar there..apptop padding and the tablet rail's top padding use--inset-top.env(safe-area-inset-top).Other projects confirmed on devices that keeping content out of the blur zone works (for example xdoubleu/tools.xdoubleu.com#1987).
Checks
npm test: 131 passed;npm run buildsucceeds.🤖 Generated with Claude Code