Skip to content

fix(ui): 顶栏透明度修复 — c-appbar 实底 + sticky 缝隙遮条#159

Merged
sweetcornna merged 1 commit into
mainfrom
fix/ui-appbar-opacity
Jul 19, 2026
Merged

fix(ui): 顶栏透明度修复 — c-appbar 实底 + sticky 缝隙遮条#159
sweetcornna merged 1 commit into
mainfrom
fix/ui-appbar-opacity

Conversation

@sweetcornna

Copy link
Copy Markdown
Owner

浅色 Paper 主题下顶栏透明导致滚动内容透出、元素视觉混乱(用户截图反馈)。

根因(与 #148 头像 bug 同类——post-utility CSS 盖掉 utility):

  • .c-appbar { background: transparent } 定义在 utility 层之后,静默压过 nav.tsx 的 bg-sg-space-0;设计语言禁 backdrop-filter,透明 sticky 条没有模糊兜底,Paper 主题下内容直接透出。
  • sticky top-2 md:top-4 悬浮式顶栏上方有 8/16px 缝隙,内容从缝里滚过(截图中 "0/7 systems healthy" 药丸)。

修法

  • .c-appbar 背景改 var(--sg-space-0)(画布色实底,暗色主题视觉不变)。
  • nav.tsx 顶栏加 before: 画布色遮条填掉悬浮缝隙。
  • globals-glass-vars.test.ts 新增守卫:.c-appbar 必须 var(--sg-space-0)、永不 transparent。

验证:pnpm test 161 文件 / 1255 通过(+1 守卫);typecheck 0 错误。

https://claude.ai/code/session_01PzzkxzLNdLrVCRAUyGtmEz

globals.css 的 .c-appbar background: transparent 定义在 utility 层之后,
盖掉了 nav.tsx 的 bg-sg-space-0(暗色纯黑底看不出,Paper 主题下滚动内容
从条底透出)。改为 var(--sg-space-0) 实底;同时用 before 伪元素把
sticky top-2/4 的悬浮缝隙填上,内容不再从条上方缝隙滚过。加守卫测试
锁定 c-appbar 永不回到透明。

Claude-Session: https://claude.ai/code/session_01PzzkxzLNdLrVCRAUyGtmEz
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added codex:needs-review A Codex review is needed for the current PR head. codex:review-requested A Codex review was requested or should be running automatically. status: 🔁 re-review loop A fresh Codex review was requested after the latest change or comment. labels Jul 19, 2026
@sweetcornna
sweetcornna merged commit 60bf45f into main Jul 19, 2026
8 of 9 checks passed
@sweetcornna
sweetcornna deleted the fix/ui-appbar-opacity branch July 19, 2026 06:27
@github-actions github-actions Bot added codex:reviewed Codex posted a review result or thumbs-up after the latest request. status: 👀 ready for maintainer look No automation blocker is known; a maintainer should inspect the current result. status: ✅ merge-ready Evidence and review are clear; normal merge gates may proceed. and removed codex:review-requested A Codex review was requested or should be running automatically. codex:needs-review A Codex review is needed for the current PR head. status: 🔁 re-review loop A fresh Codex review was requested after the latest change or comment. labels Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex:reviewed Codex posted a review result or thumbs-up after the latest request. status: ✅ merge-ready Evidence and review are clear; normal merge gates may proceed. status: 👀 ready for maintainer look No automation blocker is known; a maintainer should inspect the current result.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant