优化会话列表显示效果

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

@@ -72,7 +72,7 @@ type FlatItem =
| { type: "conversation"; conversation: DbConversationSummary }
const HEADER_HEIGHT = 32
const CARD_HEIGHT = 58
const CARD_HEIGHT = 62
const GroupHeader = memo(function GroupHeader({
status,
@@ -102,9 +102,7 @@ const GroupHeader = memo(function GroupHeader({
className={cn("w-2 h-2 rounded-full shrink-0", STATUS_COLORS[status])}
/>
<span>{tStatus(status)}</span>
<span className="ml-auto text-muted-foreground/60 tabular-nums">
{count}
</span>
<span className="text-muted-foreground/60 tabular-nums">({count})</span>
</button>
)
})
@@ -148,8 +146,8 @@ const PendingReviewHeader = memo(function PendingReviewHeader({
)}
/>
<span>{tStatus("pending_review")}</span>
<span className="ml-auto text-muted-foreground/60 tabular-nums">
{count}
<span className="text-muted-foreground/60 tabular-nums">
({count})
</span>
</button>
</ContextMenuTrigger>