You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): keep Windows sidebar buttons clickable with wallpaper - #1368
Keep the Windows sidebar toggle in the caption row when wallpaper is enabled, including when the sidebar is collapsed. Restore the collapsed New Session button in the same row. Related issue: N/A.
Root cause
The wallpaper backdrop filter on the sidebar column creates a containing block for its fixed-position descendants. The caption buttons inherit the 32 px vertical offset of the column. On collapse, the zero-width column also clips both controls through its existing overflow rule.
Fix
Render the wallpaper blur and the 22% light / 26% dark tint on a pointer-transparent pseudo-element behind the sidebar content.
Keep the original theme cascade. Reduced transparency, increased contrast, and forced colors disable blur. The light fallback uses 92% tint, while the more specific dark rule retains its existing 26% tint.
Tests
Built latest upstream main with this change using npm run build:typescript and npm run build:web:ui. The targeted Prettier check and git diff --check passed.
Verified the baseline and patched CodexHost 0.28.2 npm distribution on Windows in Edge using a separate local Web instance, a generated wallpaper, and the desktop shell's title-bar attributes. The expanded toggle moved from (12, 34) to (12, 2). At zero sidebar width, the toggle at (12, 2) and New Session at (48, 2) both passed hit testing. Real mouse clicks collapsed and reopened the sidebar, and New Session opened the composer from the Plugins page.
Confirmed visually that the wallpaper remains blurred behind sharp sidebar text in light and dark themes. Checked the no-blur fallback in increased contrast, forced colors, and reduced transparency in the original run. After restoring the dark tint cascade, rechecked increased contrast and reduced transparency in both themes (light 92%, dark 26%) and verified that the collapsed buttons still receive pointer hits.
Risk and compatibility
The CSS applies to the existing non-macOS and Tauri wallpaper selector. It preserves the existing column overflow and button handlers. Browser verification exercised the Windows layout and click targets. Native WebView2 caption drag behavior and other platforms were outside that run.
This is a small styling fix that keeps the sidebar buttons clickable when a wallpaper is enabled. No concrete merge-blocking risk was found. Native WebView2 title-bar drag behavior was not tested.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
标题“fix(web): keep Windows sidebar buttons clickable with wallpaper”与变更内容一致。变更在 AppFrame.module.css 中为非 macOS 或 Tauri 壁纸模式的侧栏列增加隔离层,把模糊与半透明填充移至 ::before 伪元素,使 Windows 侧栏按钮在壁纸模式下(包括侧栏折叠时)仍可点击。标题简洁且具体,说明…
Description check
描述与变更相关。它说明了保留 Windows 侧栏切换按钮与折叠状态下 New Session 按钮的目标,并解释了根本原因(壁纸背景滤镜创建了 fixed 定位后代的包含块,且折叠列的 overflow 规则裁剪了按钮)。描述还给出修复方式(伪元素承载模糊与色调)、测试过程与风险说明,与 CSS 变更直接对应。
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
标题“fix(web): keep Windows sidebar buttons clickable with wallpaper”与变更内容一致。变更在 AppFrame.module.css 中为非 macOS 或 Tauri 壁纸模式的侧栏列增加隔离层,把模糊与半透明填充移至 ::before 伪元素,使 Windows 侧栏按钮在壁纸模式下(包括侧栏折叠时)仍可点击。标题简洁且具体,说明了主要变更。
Finishing Touches
Generate unit tests (beta)
Create a new PR
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.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
Applicability reference: AGENTS.md: # Repository Guidelines `npm start` / `npm start web` rebuild and relaunch the user's Desktop / Web and may restart the shared Host; `npm stop` stops all local codexhost services across worktrees.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Keep the Windows sidebar toggle in the caption row when wallpaper is enabled, including when the sidebar is collapsed. Restore the collapsed New Session button in the same row. Related issue: N/A.
Root cause
The wallpaper backdrop filter on the sidebar column creates a containing block for its fixed-position descendants. The caption buttons inherit the 32 px vertical offset of the column. On collapse, the zero-width column also clips both controls through its existing overflow rule.
Fix
Tests
npm run build:typescriptandnpm run build:web:ui. The targeted Prettier check andgit diff --checkpassed.Risk and compatibility
The CSS applies to the existing non-macOS and Tauri wallpaper selector. It preserves the existing column overflow and button handlers. Browser verification exercised the Windows layout and click targets. Native WebView2 caption drag behavior and other platforms were outside that run.
UI Demo
🤖 Generated with Claude Code