Skip to content

Commit 76d2066

Browse files
committed
chore(ui): 删死文件 App.css 与 chatBlink 死动画声明
1 parent 4f90d89 commit 76d2066

4 files changed

Lines changed: 3 additions & 126 deletions

File tree

‎app/src/App.css‎

Lines changed: 0 additions & 123 deletions
This file was deleted.

‎app/src/components/ChatMessageList.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default function ChatMessageList({ messages, streaming, onRegenerate, onE
144144
<div style={{ background: "#f8fafc", border: "1px solid #e5e7eb", borderRadius: 8, padding: "8px 12px", maxWidth: "86%" }}>
145145
<ChatMessageMarkdown content={streaming.text} />
146146
{(streaming.hits?.length ?? 0) > 0 && <CitationChips hits={streaming.hits ?? []} onOpenNote={onOpenCitedNote} />}
147-
<span style={{ display: "inline-block", width: 6, height: 14, background: "#0d9488", animation: "chatBlink 1s infinite", verticalAlign: "text-bottom", marginLeft: 2 }} />
147+
<span style={{ display: "inline-block", width: 6, height: 14, background: "#0d9488", verticalAlign: "text-bottom", marginLeft: 2 }} />
148148
</div>
149149
</div>
150150
)}

‎app/src/components/NoteColorPicker.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @ai-context: spec §4.1/§4.2——固定 12 色语义色板(不开放自定义),null=未设置
55
* (渲染层回退默认灰)。色点内文字取 onColorText(黑/白高对比,
66
* WCAG AA ≥4.5:1 由 isThemeSafe 定义期保证);主题经 matchMedia
7-
* 跟随 App.css 的 prefers-color-scheme。受控组件——选中态/清除
7+
* 跟随 [data-theme="dark"] 的 --ed-* token。受控组件——选中态/清除
88
* 完全由 value/onChange 驱动。
99
*/
1010
import { useMemo, useState } from "react";

‎app/src/utils/colorPalette.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type ColorId =
1313
| "red" | "orange" | "yellow" | "green" | "teal" | "blue"
1414
| "purple" | "pink" | "brown" | "gray" | "black" | "white";
1515

16-
/** 主题模式(与 App.css prefers-color-scheme 对齐) */
16+
/** 主题模式(暗档由 [data-theme="dark"] 与 ui/tokens.css 的 --ed-* 变量承载) */
1717
export type ThemeMode = "light" | "dark";
1818

1919
/** 色板定义:双主题变体 + 中文语义(spec §4.1 表) */

0 commit comments

Comments
 (0)