优化会话列表显示效果

This commit is contained in:
xintaofei
2026-03-22 12:43:55 +08:00
parent deeb91b69f
commit 7174ac8d4c
3 changed files with 11 additions and 12 deletions

View File

@@ -117,9 +117,10 @@ export const SidebarConversationCard = memo(function SidebarConversationCard({
onClick={handleClick}
onDoubleClick={handleDblClick}
className={cn(
"w-full text-left px-3 py-2.5 rounded-md transition-colors",
"hover:bg-sidebar-accent/50",
isSelected && "bg-sidebar-accent text-sidebar-accent-foreground"
"w-full text-left px-3 py-2.5 mb-1 rounded-md transition-colors",
isSelected
? "bg-sidebar-accent text-sidebar-accent-foreground"
: "hover:bg-sidebar-accent/50"
)}
>
<div className="flex items-center gap-1.5 min-w-0">