Skip to content

fix(macos): remove stale .sidebar-shell__header rule from injected dashboard CSS#102526

Merged
steipete merged 1 commit into
mainfrom
claude/xenodochial-lovelace-34bc44
Jul 9, 2026
Merged

fix(macos): remove stale .sidebar-shell__header rule from injected dashboard CSS#102526
steipete merged 1 commit into
mainfrom
claude/xenodochial-lovelace-34bc44

Conversation

@steipete

@steipete steipete commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The macOS dashboard window injects native-chrome CSS into the web UI (installNativeChromeScript). One of the injected rules targets .sidebar-shell__header, but that class no longer exists anywhere in ui/src — the sidebar template renders only sidebar-shell, sidebar-shell__body, and sidebar-shell__footer (ui/src/components/app-sidebar.ts:1660). The rule is dead weight shipped into every dashboard page load.

Why This Change Was Made

Stale injected CSS makes the native-chrome contract look larger than it is and misleads future readers into thinking the web UI still has a sidebar header element the Mac app styles. Pure dead-code deletion.

User Impact

None visible. The load-bearing .sidebar-shell padding-top rule (clears the macOS traffic-light strip) is untouched.

Evidence

  • grep -rn "sidebar-shell__header" ui/src → no matches; only occurrence in the repo was the injected CSS string in apps/macos/Sources/OpenClaw/DashboardWindowController.swift.
  • ui/src/components/app-sidebar.ts:1660 renders sidebar-shell / __body / __footer only.
  • Diff is a 4-line deletion inside a CSS string literal; git diff --check clean.

@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: XS maintainer Maintainer-authored PR labels Jul 9, 2026
@steipete
steipete merged commit ea8076a into main Jul 9, 2026
63 of 66 checks passed
@steipete
steipete deleted the claude/xenodochial-lovelace-34bc44 branch July 9, 2026 07:54
@steipete

steipete commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant