Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(sidebar): 用继承颜色兼容不同主题的摘要混色

Dashe2ce76bb355a
diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionCard.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionCard.tsx
index 7355d5d19d..bd56a94870 100644
--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionCard.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionCard.tsx
@@ -891,7 +891,7 @@ export const SessionCard = withSidebarNavigation<SessionCardProps>(function Sess
? 'text-[var(--sidebar-item-active-foreground)] font-medium'
: 'text-[var(--card-status-awaiting)] font-medium'
: isActive
- ? 'text-[color-mix(in_srgb,var(--sidebar-item-active-foreground)_80%,transparent)]'
+ ? 'text-[color-mix(in_srgb,currentColor_80%,transparent)]'
: 'text-[var(--text-secondary)]',
)}
style={{ height: '1.45em' }}
@@ -1067,7 +1067,7 @@ export const SessionCard = withSidebarNavigation<SessionCardProps>(function Sess
'mt-[4px] text-11 leading-[1.4]',
'[display:-webkit-box] [-webkit-box-orient:vertical] overflow-hidden',
isActive
- ? 'text-[color-mix(in_srgb,var(--sidebar-item-active-foreground)_80%,transparent)]'
+ ? 'text-[color-mix(in_srgb,currentColor_80%,transparent)]'
: 'text-[var(--text-secondary)]',
)}
style={{ WebkitLineClamp: cardPreviewLineClamp }}