[PR #8659] [MERGED] fix(mobile): phone top bars drop an invisible backdrop blur #8729

Closed
opened 2026-11-07 17:39:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8659
Author: @SpicyMarinara
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/phone-bars-no-blur-1997


📝 Commits (1)

  • 58c6554 fix(mobile): phone top bars drop an invisible backdrop blur

📊 Changes

2 files changed (+59 additions, -0 deletions)

View changed files

📝 e2e/home-browser-fullscreen.e2e.ts (+49 -0)
📝 packages/client/src/styles/globals.css (+10 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #8658

Why this change

  • In Samsung Internet on a Galaxy S23+, Otome Hearth's Home flickers badly: parts of the screen drop out about twice a second (Pasta-Devs/Marinara-Agents#1997). Chrome on the same phone is fine. The reporter confirmed that Reduce Ambient Animations & Effects stops it. On that screen, the only Engine-owned thing the setting changes for every user is the backdrop-blur-sm on two bars: the TopBar and Home's tab strip (.mari-home-browser-chrome). On phones both bars are already painted solid with the canvas-flattened --marinara-page-backing, so the blur shows nothing. It still keeps two blur layers redrawing over the package tab, and that load is what Samsung Internet's compositor drops.

What changed

  • packages/client/src/styles/globals.css, inside the existing phone/touch block:
    • .mari-topbar and .mari-home-browser-chrome get backdrop-filter: none, as the Firefox rule already does for the TopBar.
    • .mari-topbar also gets contain: layout. A backdrop filter makes an element the box its fixed-position children are placed from. The TopBar's YouTube video panel and floating Spotify player (shown only at 768px and wider, so on touch tablets and sideways phones) rely on that, and contain: layout keeps it without the GPU cost.
  • Desktop is unchanged and keeps its frosted bars.
  • New test in e2e/home-browser-fullscreen.e2e.ts. On phones it checks that both bars have no backdrop filter and are fully opaque, and that a fixed child of the TopBar still lands on the bar. On desktop it checks that the header keeps its blur. Before the CSS change it fails on mobile-chromium and mobile-webkit: the blur is present, and without contain: layout a fixed child lands 31px off.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

What the agent ran locally:

  • After rebasing on staging, node ./scripts/pnpm-runner.mjs check passes.
  • home-browser-fullscreen passes 12/12 across desktop-chromium, mobile-chromium and mobile-webkit.
  • phone-camera-side, home-browser-tab-menu and topbar-accessibility pass. The node regressions that read globals.css (floating-window, mobile-safe-area-inset, music-dj-and-floating-ui, seasonal-themes, and others) pass too.
  • Background opacity of both bars was measured at phone size: fully opaque in dark, light, SillyTavern, the Halloween and New Year themes, and a custom theme with translucent surfaces.
  • Pixel comparisons before and after on mobile: mobile WebKit is identical. Mobile Chromium differs only in sub-pixel anti-aliasing, because the bars are no longer separate GPU layers.
  • An independent review agent confirmed that on a phone with a package tab open, these two bars were the only elements with a backdrop filter. It also corrected two comments about which music panels are fixed children of the TopBar.
  • Local CodeRabbit reported 0 findings.

For a human to verify:

  • On the reporter's device (Galaxy S23+, Samsung Internet, standalone PWA), with Reduce Ambient Animations & Effects off, manually verify that the Otome Hearth Home tab no longer flickers. This can't be reproduced here.
  • On desktop, manually verify that the TopBar and Home's tab strip still look frosted over the Home starfield.
  • On a phone with a custom theme, manually verify that both bars still show a solid background.
  • On a touch tablet or a sideways phone (768px and wider), manually verify that the YouTube video panel and the floating Spotify player open where they did before.
  • Known side effect: on a touch tablet, the floating Spotify fallback panel (backdrop-blur-xl) used to blur only the bar. It now blurs the page behind it, so it looks frosted like the phone music widgets. The reduce-effects setting still removes it.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

No docs change: nothing looks different, and no setting changed.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8659 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/phone-bars-no-blur-1997` --- ### 📝 Commits (1) - [`58c6554`](https://github.com/Pasta-Devs/Marinara-Engine/commit/58c65542141964883750602a5776dde63eb06ee9) fix(mobile): phone top bars drop an invisible backdrop blur ### 📊 Changes **2 files changed** (+59 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `e2e/home-browser-fullscreen.e2e.ts` (+49 -0) 📝 `packages/client/src/styles/globals.css` (+10 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #8658 ## Why this change - In Samsung Internet on a Galaxy S23+, Otome Hearth's Home flickers badly: parts of the screen drop out about twice a second (Pasta-Devs/Marinara-Agents#1997). Chrome on the same phone is fine. The reporter confirmed that **Reduce Ambient Animations & Effects** stops it. On that screen, the only Engine-owned thing the setting changes for every user is the `backdrop-blur-sm` on two bars: the TopBar and Home's tab strip (`.mari-home-browser-chrome`). On phones both bars are already painted solid with the canvas-flattened `--marinara-page-backing`, so the blur shows nothing. It still keeps two blur layers redrawing over the package tab, and that load is what Samsung Internet's compositor drops. ## What changed - `packages/client/src/styles/globals.css`, inside the existing phone/touch block: - `.mari-topbar` and `.mari-home-browser-chrome` get `backdrop-filter: none`, as the Firefox rule already does for the TopBar. - `.mari-topbar` also gets `contain: layout`. A backdrop filter makes an element the box its fixed-position children are placed from. The TopBar's YouTube video panel and floating Spotify player (shown only at 768px and wider, so on touch tablets and sideways phones) rely on that, and `contain: layout` keeps it without the GPU cost. - Desktop is unchanged and keeps its frosted bars. - New test in `e2e/home-browser-fullscreen.e2e.ts`. On phones it checks that both bars have no backdrop filter and are fully opaque, and that a fixed child of the TopBar still lands on the bar. On desktop it checks that the header keeps its blur. Before the CSS change it fails on mobile-chromium and mobile-webkit: the blur is present, and without `contain: layout` a fixed child lands 31px off. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes What the agent ran locally: - After rebasing on staging, `node ./scripts/pnpm-runner.mjs check` passes. - `home-browser-fullscreen` passes 12/12 across desktop-chromium, mobile-chromium and mobile-webkit. - `phone-camera-side`, `home-browser-tab-menu` and `topbar-accessibility` pass. The node regressions that read `globals.css` (floating-window, mobile-safe-area-inset, music-dj-and-floating-ui, seasonal-themes, and others) pass too. - Background opacity of both bars was measured at phone size: fully opaque in dark, light, SillyTavern, the Halloween and New Year themes, and a custom theme with translucent surfaces. - Pixel comparisons before and after on mobile: mobile WebKit is identical. Mobile Chromium differs only in sub-pixel anti-aliasing, because the bars are no longer separate GPU layers. - An independent review agent confirmed that on a phone with a package tab open, these two bars were the only elements with a backdrop filter. It also corrected two comments about which music panels are fixed children of the TopBar. - Local CodeRabbit reported 0 findings. For a human to verify: - On the reporter's device (Galaxy S23+, Samsung Internet, standalone PWA), with Reduce Ambient Animations & Effects **off**, manually verify that the Otome Hearth Home tab no longer flickers. This can't be reproduced here. - On desktop, manually verify that the TopBar and Home's tab strip still look frosted over the Home starfield. - On a phone with a custom theme, manually verify that both bars still show a solid background. - On a touch tablet or a sideways phone (768px and wider), manually verify that the YouTube video panel and the floating Spotify player open where they did before. - Known side effect: on a touch tablet, the floating Spotify fallback panel (`backdrop-blur-xl`) used to blur only the bar. It now blurs the page behind it, so it looks frosted like the phone music widgets. The reduce-effects setting still removes it. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No docs change: nothing looks different, and no setting changed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:17 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8729
No description provided.