Skip to content

Keep the top of the installed app clear of the iOS 26 edge blur - #12

Merged
mval23 merged 1 commit into
mainfrom
ios-top-blur
Sep 28, 2026
Merged

mval23 merged 1 commit into
mainfrom
ios-top-blur

Conversation

@mval23

@mval23 mval23 commented Sep 28, 2026

Copy link
Copy Markdown
Owner

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

  • New --inset-top in styles.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.
  • .app top padding and the tablet rail's top padding use --inset-top.
  • Browsers, Android and the desktop are unchanged: in a normal tab the value is still 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 build succeeds.
  • Simulated the installed value at 1194 × 834: the title starts at 70 pt, below the end of the blur at about 64 pt, and the first rail tab at 72 pt. In a normal tab the top padding is unchanged (0).
  • To confirm on the iPad after deploy: close Remy completely and reopen it.

🤖 Generated with Claude Code

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]>
@mval23
mval23 merged commit ccefaa0 into main Sep 28, 2026
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).
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.

1 participant