Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
--assistant-bg: #ffffff;
--tool-bg: #f9fafb;
--bg-subtle: rgba(0,0,0,0.03);
/* 输入框聚焦时的背景色(浅色主题:白底) */
--composer-focus-bg: #ffffff;
}

html.dark {
Expand All @@ -50,6 +52,16 @@ html.dark {
--assistant-bg: #1a1a1a;
--tool-bg: #1f2937;
--bg-subtle: rgba(255,255,255,0.04);
/* 输入框聚焦时的背景色(深色主题:比面板亮一档,避免纯白刺眼) */
--composer-focus-bg: #2e2e2e;
}

/* 输入框容器:默认面板底色,聚焦时切换背景(textarea / 底行控件 / 面板内输入框获得焦点时触发) */
.chat-composer {
background: var(--bg-panel);
}
.chat-composer:focus-within {
background: var(--composer-focus-bg);
}

/* Theme toggle: circular wipe via View Transitions API.
Expand Down
Loading