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): 修复选中任务摘要的文字对比度

Dash15c1de88f815
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 54b8d97df8..7355d5d19d 100644
--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionCard.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionCard.tsx
@@ -890,7 +890,9 @@ export const SessionCard = withSidebarNavigation<SessionCardProps>(function Sess
? isActive
? 'text-[var(--sidebar-item-active-foreground)] font-medium'
: 'text-[var(--card-status-awaiting)] font-medium'
- : 'text-[var(--text-secondary)]',
+ : isActive
+ ? 'text-[color-mix(in_srgb,var(--sidebar-item-active-foreground)_80%,transparent)]'
+ : 'text-[var(--text-secondary)]',
)}
style={{ height: '1.45em' }}
>
@@ -1064,7 +1066,9 @@ export const SessionCard = withSidebarNavigation<SessionCardProps>(function Sess
className={cn(
'mt-[4px] text-11 leading-[1.4]',
'[display:-webkit-box] [-webkit-box-orient:vertical] overflow-hidden',
- 'text-[var(--text-secondary)]',
+ isActive
+ ? 'text-[color-mix(in_srgb,var(--sidebar-item-active-foreground)_80%,transparent)]'
+ : 'text-[var(--text-secondary)]',
)}
style={{ WebkitLineClamp: cardPreviewLineClamp }}
>