Skip to content

fix(web-ui): prevent WebKit backdrop loss and bleed-through on menus and phone drawer - #1276

Merged
iruriQ merged 1 commit into
mainfrom
fix/issue-1261
Nov 27, 2026
Merged

iruriQ merged 1 commit into
mainfrom
fix/issue-1261

Conversation

@iruriQ

@iruriQ iruriQ commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #1261

Addresses severe background bleed-through and broken frosted-glass rendering on WebKit / Safari across the mobile sidebar drawer, Composer @ delegation menu (MenuView), Harness selector dropdown (HarnessSelect -> Menu), and other MenuSurface / --dsw-specific-menu overlays in both light and dark modes.

Root Causes & Changes

  1. Menu surface fill opacity (apps/web-ui/packages/client/ui-theme/src/styles/design-platform.css):
    • Raised --dsw-menu-surface-fill from rgba(248, 249, 250, 0.58) (light) / rgba(67, 69, 74, 0.45) (dark) to rgba(248, 249, 250, 0.92) / rgba(48, 49, 54, 0.92) so menus stay legible even when WebKit cannot composite backdrop blur while keeping a subtle frosted tint consistent with --dsw-alias-menu-group-header-fill (0.94).
    • Added opaque --dsw-menu-surface-fill overrides under @media (prefers-reduced-transparency: reduce), (prefers-contrast: more).
  2. WebKit backdrop-filter & Backdrop Root (apps/web-ui/packages/client/ui-primitives/src/MenuSurface.module.css, Menu.module.css, and sibling --dsw-menu-backdrop-filter overlays):
    • Added -webkit-backdrop-filter: var(--dsw-menu-backdrop-filter) alongside backdrop-filter on .material (and -webkit-backdrop-filter: none in Menu.module.css .phoneList), plus matching -webkit-backdrop-filter declarations on HoverCard, SubagentHeaderLineage, HostUsageDock, ContextMeter, TodoPanel, and QueueDock.
    • Replaced isolation: isolate on MenuSurface .surface (and QueueDock .panel) with z-index: 0 inside :where(.surface) / .panel: per CSS Filter Effects Level 2, isolation: isolate creates a Backdrop Root that prevents child backdrop-filter layers from blurring page content behind the menu on WebKit/Safari, whereas z-index: 0 still confines the z-index: -1 material layer without creating a Backdrop Root.
    • Scoped .backing to @supports (position-anchor: --dsh-menu) and (width: anchor-size(width)) and html[data-platform="darwin"]:not([data-tauri-shell]) so browsers without CSS Anchor Positioning and the opaque Tauri WKWebView shell do not activate it.
  3. Mobile phone drawer surface (apps/web-ui/packages/client/ui-layout/src/client/AppFrame.module.css):

Validation

  • Ran focused build & format checks:
    • npx tsc -b packages/shared-contracts packages/desktop-control
    • npm run build:web:ui (all 43 Web UI client plugins + browser shell built cleanly)
    • npx prettier --check on all 10 modified CSS files
  • Captured and inspected before/after rendered screenshots in Playwright WebKit (Safari/605.1.15) and Chromium (Google Chrome) covering MenuSurface and .phoneDrawer in both light and dark themes to confirm elimination of text overlap on WebKit and preserved frosted-glass appearance on Chromium.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@iruriQ
iruriQ merged commit af6b243 into main Nov 27, 2026
5 of 8 checks passed
@iruriQ
iruriQ deleted the fix/issue-1261 branch November 27, 2026 01:10
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.

[Bug] WebKit / Safari 下手机抽屉、@ 委派浮层与 Harness 下拉菜单透底重叠

2 participants