From 3758122cf7ff0003ad7cb97a54c8adec4a87d52f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=87=AF?= Date: Thu, 18 Jun 2026 17:45:17 +0800 Subject: [PATCH] =?UTF-8?q?style(workspace):=20=E5=85=A8=E9=87=8F=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E9=80=9A=E7=94=A8=E9=97=AE=E7=AD=94=E5=B7=A6=E6=A0=8F?= =?UTF-8?q?=E6=B7=B1=E8=89=B2=E6=B7=B1=E8=93=9D=E7=8E=BB=E7=92=83=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 深色(.dark)主题下,全量模式聊天页左栏(GeneralQaSidebar)由扁平 bg-sidebar 改为「深蓝主题底图 + 半透明蓝罩」玻璃面板:与右侧 workspace-chat-bg 主区同一张 fixed 底图、左右连续,叠蓝罩略深一档作面板区分。浅色/浅蓝主题不命中,仍用 sidebar token,内部元素走语义 token 自适配。 Co-Authored-By: Claude Opus 4.8 (1M context) --- .../components/workspace/general-qa-sidebar.tsx | 6 ++++-- frontend-web/src/styles/globals.css | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/frontend-web/src/components/workspace/general-qa-sidebar.tsx b/frontend-web/src/components/workspace/general-qa-sidebar.tsx index 87a0d92e..d9062d86 100644 --- a/frontend-web/src/components/workspace/general-qa-sidebar.tsx +++ b/frontend-web/src/components/workspace/general-qa-sidebar.tsx @@ -300,8 +300,10 @@ export function GeneralQaSidebar() { const isStatic = env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true"; return ( - // 背景走 sidebar token(浅主题=白、深蓝主题=深蓝),不要写死 bg-white,否则全量版深蓝主题下侧栏仍是白底。 -
+ // 背景走 sidebar token(浅主题=白、浅蓝主题=浅蓝);深蓝(.dark)主题下由 gq-sidebar + // 改为「深蓝主题底图 + 半透明蓝罩」玻璃面板(见 globals.css),与右侧 workspace-chat-bg + // 主区同底图、略深一档作面板区分,不要写死 bg-white。 +
{/* ── 顶部:新对话胶囊 + 收起按钮 ── */}
{/* 新对话按钮:完全自定义样式(不复用 Button variant)。borderColor / color 走 diff --git a/frontend-web/src/styles/globals.css b/frontend-web/src/styles/globals.css index 853a422b..bec6856c 100644 --- a/frontend-web/src/styles/globals.css +++ b/frontend-web/src/styles/globals.css @@ -609,6 +609,23 @@ color: #faad14 !important; } + /* 全量模式通用问答左栏(GeneralQaSidebar,class=gq-sidebar)的深蓝适配:深蓝(.dark) + * 主题下由扁平 bg-sidebar 改为「深蓝主题底图 + 半透明蓝罩」玻璃面板——与右侧主区 + * workspace-chat-bg 同一张 fixed 底图(视口对齐、左右连续),叠一层蓝罩使其略深、读作 + * 独立面板。内部元素已走语义 token,自适配。浅色 / 浅蓝主题不命中,仍用 sidebar token。 */ + .dark .gq-sidebar { + background-color: transparent !important; + background-image: linear-gradient( + rgba(3, 38, 80, 0.72), + rgba(3, 38, 80, 0.72) + ), + url("../assets/img/layout-bg-theme-dark-blue.svg"); + background-size: cover, cover; + background-position: center top, center top; + background-repeat: no-repeat, no-repeat; + background-attachment: fixed, fixed; + } + .workspace-panel { border: 1px solid #f0d7d0; background: #ffffff;