feat: 对话历史列表页增加删除按钮
CI / 后端测试 (push) Has been cancelled
CI / 前端构建 (push) Has been cancelled

This commit is contained in:
selfrelease
2026-08-31 15:29:38 +08:00
parent 095667fc7a
commit 5272ed5339
+8 -1
View File
@@ -367,7 +367,14 @@ export function ChatHistory() {
</span> </span>
</div> </div>
</div> </div>
<ChevronRight className="h-4 w-4 text-muted-foreground" /> <button
onClick={(e) => { e.stopPropagation(); setDeleteTarget(session) }}
className="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-red-50 hover:text-red-500"
aria-label="删除"
>
<Trash2 className="h-4 w-4" />
</button>
<ChevronRight className="h-4 w-4 shrink-0 text-muted-foreground" />
</CardContent> </CardContent>
</Card> </Card>
) )