返回 Bug 清单
BUG-0644project-52中已修复backend-logic

highlight.js CSS @import from globals.css instead of client component

发现:2026-10-09验证:2026-10-27置信度:70%

症状

commit 55c792774cb9 (2026-09-13) fix(ui): highlight.js CSS @import from globals.css instead of client component

根因

ROOT CAUSE: 'use client' component CSS imports may not be processed by Next.js build

修复方案

修复 38 行,删除 6 行。改动文件: project-521.0.0/frontend/app/globals.css, project-521.0.0/frontend/components/FileHighlight.tsx

错误签名

fix(ui): highlight.js CSS @import from globals.css instead of client component ROOT CAUSE: 'use client' component CSS imports may not be processed by Next.js build

FIX: move @import 'highlight.js/styles/github.css' to globals.css TOP

globals.css: +45 lines dark mode hljs overrides (github-dark palette)

  - both @media (prefers-color-scheme: dark) and .dark class get full hljs color set

  - keywords #ff7b72, strings #a5d6ff, comments #8b949e, titles #d2a8ff, etc

FileHighlight.tsx: remove CSS

技术信息

来源项目

project-52

涉及文件

project-521.0.0/frontend/app/globals.css, project-521.0.0/frontend/components/FileHighlight.tsx

标签

git-sweep, auto-ingested, project-52, mcp-reported, source-agent