feat: 对话历史列表页增加删除按钮
This commit is contained in:
@@ -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>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user