Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

style(ai): use neutral sidebar action colors

tianma-if8009c039c3b3
diff --git a/apps/web/src/components/ai-sidebar/AiSidebar.tsx b/apps/web/src/components/ai-sidebar/AiSidebar.tsx
index 621f8a0f..b701d4df 100644
--- a/apps/web/src/components/ai-sidebar/AiSidebar.tsx
+++ b/apps/web/src/components/ai-sidebar/AiSidebar.tsx
@@ -685,7 +685,7 @@ function SidebarComposer({
size="sm"
variant="outline"
aria-pressed={includeCurrentNote}
- className={includeCurrentNote ? "border-emerald-600 bg-emerald-50 text-emerald-800 hover:bg-emerald-100" : undefined}
+ className={includeCurrentNote ? "border-slate-600 bg-slate-100 text-slate-900 hover:bg-slate-200" : undefined}
disabled={busy || locked}
onClick={() => onIncludeCurrentNoteChange(!includeCurrentNote)}
>
@@ -1486,7 +1486,7 @@ function AiSidebarSession({
{draft ? <NoteEditDiff before={draft.before} after={draft.after} /> : null}
{conflicts[action.id] ? <p role="alert" className="text-xs text-rose-700">{conflicts[action.id]}</p> : null}
<div className="flex gap-2">
- <Button type="button" size="sm" variant="solid" disabled={running || acting} onClick={() => void applyAction(action)}>
+ <Button type="button" size="sm" variant="solid" className="border-slate-900 bg-slate-900 hover:border-slate-800 hover:bg-slate-800" disabled={running || acting} onClick={() => void applyAction(action)}>
{t(draft ? "aiAssistant.sidebar.proposalConfirm" : "aiAssistant.sidebar.proposalConfirmOther")}
</Button>
<Button type="button" size="sm" variant="outline" disabled={running || acting} onClick={() => void dismissAction(action)}>
diff --git a/apps/web/src/components/ai-sidebar/AiSidebarErrorBoundary.tsx b/apps/web/src/components/ai-sidebar/AiSidebarErrorBoundary.tsx
index 9634c9f9..a2d81329 100644
--- a/apps/web/src/components/ai-sidebar/AiSidebarErrorBoundary.tsx
+++ b/apps/web/src/components/ai-sidebar/AiSidebarErrorBoundary.tsx
@@ -36,7 +36,7 @@ export class AiSidebarErrorBoundary extends React.Component<Props, State> {
<div className="flex gap-2">
<button
type="button"
- className="rounded-lg bg-emerald-500 px-3 py-2 text-sm font-medium text-white hover:bg-emerald-600"
+ className="rounded-lg bg-slate-900 px-3 py-2 text-sm font-medium text-white hover:bg-slate-800"
onClick={() => this.setState({ failed: false })}
>
{zh ? "重试侧栏" : "Retry sidebar"}