Skip to content

Keep the iPhone home-screen app's header clear of iOS 26's edge blur - #106

Merged
devswha merged 3 commits into
devswha:mainfrom
Yoonwoo-Ha:fix/ios-status-bar-blur
Sep 28, 2026
Merged

devswha merged 3 commits into
devswha:mainfrom
Yoonwoo-Ha:fix/ios-status-bar-blur

Conversation

@Yoonwoo-Ha

@Yoonwoo-Ha Yoonwoo-Ha commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On an iPhone, the home-screen app's header was blurred: the title, the Chat/Terminal switch and the icons. The same page in a Safari tab was sharp.

Cause

Since iOS 26, an installed web app gets the Liquid Glass scroll edge effect laid over the top of the page, and it reaches into our header.

  • There is no CSS or meta switch to turn it off.
  • WebKit skips it only when a fixed or sticky box with a background covers the top edge (more than about 10 px tall, at least 90% of the width). It then uses that box's color instead.

Fix

  • .app-header is now position: sticky; top: 0.
    • It is already an opaque (--bg-panel), full-width bar at the top edge, and nothing scrolls it, so the layout does not change.
    • It runs under the clock through the safe-area-inset-top padding, so iOS takes its color there.
  • The status bar meta stays black-translucent, so an existing home-screen install needs no reinstall.

The first version of this PR removed black-translucent instead, as amir20/dozzle#5222 did. That is not enough on its own: ItHasU/eurekai#16 still saw the bar blurred after going opaque and reinstalling, and fixed it with a fixed box at the top. This PR now takes that approach, and index.html is unchanged.

Tests

  • Headless Chrome, iPhone 13 and 1280×900 viewports, main against this branch: every box in the header, .app-body, .sidebar and the composer is at the same position and size. The only differences are two text spans whose temp-folder names differ in length.
  • tsc --noEmit, bun test src.
  • Not yet checked on an iPhone. I'll report back from the device that showed the blur.

🤖 Generated with Claude Code

`apple-mobile-web-app-status-bar-style: black-translucent` (with
viewport-fit=cover) puts the page under the iOS status bar. Since iOS
26 the system fills that inset with its Liquid Glass scroll edge
effect, a blur ramp that also reaches into the header below it; there
is no CSS or meta opt-out, and the old backdrop-filter overlay trick
no longer works in standalone apps.

Without the meta the web view starts below the status bar, which the
theme-color (already following the theme) paints, and
env(safe-area-inset-top) reports 0, so every inset use collapses on
its own. viewport-fit=cover stays for landscape and the home indicator.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 25f548a1-e340-40ed-abcf-55f7ddfa7a94

📥 Commits

Reviewing files that changed from the base of the PR and between 0a82339 and 5f26701.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • src/styles.css
🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • Fixed the home-screen app header on iOS 26 and later so it stays at the top of the screen and covers the Liquid Glass edge blur. Safari is unaffected.

Walkthrough

The app header now sticks to the top of the viewport. The Unreleased changelog describes the iOS 26+ home-screen behavior and notes that Safari is unaffected.

Changes

iOS home-screen header

Layer / File(s) Summary
Sticky header behavior
src/styles.css, CHANGELOG.md
.app-header uses position: sticky with top: 0. The changelog describes the iOS 26+ home-screen behavior and states that Safari is unaffected.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: devswha

Merge Risk: ⚪ Minimal · up to 5f267

No actionable issue is established before merge; confirm the intended blur fix on an iPhone when available.

Architecture Summary

Architecture risk: 🔵 Low · up to 5f267

The change affects 2 systems.

Changed systems: CHANGELOG.md, src

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — CHANGELOG.md (service) was modified; 1 changed file maps to changed impact.
  • observed — src (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in CHANGELOG.md: The Unreleased fixes list now documents the iOS 26+ home-screen header blur and states that making the header sticky covers the blurred edge; Safari was unaffected.
  • observed — Modified behavior in src/styles.css: .app-header now sticks to the top of its scroll container; the added comment describes an iOS home-screen display case.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the problem, cause, fix, and automated validation. However, it does not use the required "## Change" and "## Validation" sections, and it does not include the required screens… Rename or reorganize the relevant sections as "## Change" and "## Validation". Add a screenshot or recording from an owned test session, and report the iPhone validation result.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change: preventing iOS 26 edge blur from affecting the iPhone home-screen app header.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the problem, cause, fix, and automated validation. However, it does not use the required "## Change" and "## Validation" sections, and it does not include the required screenshot or recording for this UI change. Device validation also remains pending.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

The previous commit dropped `black-translucent` so that the page would
not draw under the status bar. That is not enough: on an iPhone the
header of the home-screen app was still blurred (Safari's tab was
not), and other apps report the same after going opaque and
reinstalling (ItHasU/eurekai#16). iOS lays its Liquid Glass scroll
edge effect over the top of an installed web app whatever the status
bar style, and skips it only when a fixed or sticky box with a
background covers that edge, taking that box's color instead.

The header (opaque --bg-panel, full width, above the scroll areas) is
now `position: sticky; top: 0`. Nothing scrolls it, so the layout is
unchanged (element boxes identical to main at phone and desktop
sizes). The status bar meta is back to `black-translucent`, so the
header still runs under the clock and no reinstall is needed.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@Yoonwoo-Ha Yoonwoo-Ha changed the title Stop drawing under the iOS status bar, where iOS 26 blurs the top of the app Keep the iPhone home-screen app's header clear of iOS 26's edge blur Sep 28, 2026
@devswha
devswha merged commit 441c625 into devswha:main Sep 28, 2026
3 checks passed
zunhdev added a commit to zunhdev/tonaris that referenced this pull request Oct 31, 2026
…ring it (TON-135) (#135)

Closes TON-135

Found in the creator's manual testing (31 October 2026): on an iPhone,
the top bar ("Collection" and its buttons) looked shaded and blurred, as
under a gradient. Android was fine.

**Cause:** nothing in Tonaris draws a gradient or blur there. iOS 26
Home Screen apps get Liquid Glass's *edge effect*, a blur over the
status bar and about 40 pt below it. Reports from several apps that hit
the same thing ([1](devswha/ovis#106),
[2](mbryantms/folio#994)) describe WebKit
skipping it when a **fixed or sticky** box, nearly full width, more than
~10 px tall and painted in **one solid colour**, covers the top edge.
WebKit then uses that colour for the status bar. Our phone top bar was a
static flex child with no background of its own, so it didn't qualify.

**Fix:** the phone's top bar is `sticky top-0` with `bg-app`, the
background it already appeared to have, so the layout doesn't change.
The first phone test now checks that the bar is sticky and opaque.

**Not verifiable here:** Playwright's WebKit doesn't draw iOS's edge
effect, and several of those reports were unverified on devices.
**Please check on your iPhone** after the deploy (installed app and
Safari). If the haze remains, the next step is a fixed solid strip at
the very top edge.

**Verification:** full `bun run check` passed locally (1450 tests, 164
browser tests).

**Docs:** DS-110 (fixed in TON-135).

**OpenSpec change:** none (Bug).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

2 participants