fix: source list scroll, citation targeting, and page UI polish
- Replace ScrollArea with native overflow-y-auto for reliable mouse wheel scrolling - Scope source DOM IDs by message ID to fix cross-round citation jumps - Improve profile, settings, forum, knowledge page layouts - Update mobile navigation and chat interface Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -91,8 +91,8 @@ export default function KnowledgeAdminPage() {
|
||||
<span
|
||||
className={`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium ${
|
||||
kb.is_system
|
||||
? "bg-blue-100 text-blue-700"
|
||||
: "bg-slate-100 text-slate-600"
|
||||
? "bg-primary/10 text-primary"
|
||||
: "bg-muted text-muted-foreground"
|
||||
}`}
|
||||
>
|
||||
{kb.is_system ? "系统" : "用户"}
|
||||
@@ -108,7 +108,7 @@ export default function KnowledgeAdminPage() {
|
||||
<div className="flex items-center justify-center gap-1">
|
||||
<button
|
||||
onClick={() => handleDelete(kb.id)}
|
||||
className="text-xs px-2 py-1 bg-red-600 text-white rounded hover:bg-red-700"
|
||||
className="text-xs px-2 py-1 bg-destructive text-destructive-foreground rounded hover:bg-destructive/80"
|
||||
>
|
||||
确认
|
||||
</button>
|
||||
@@ -122,7 +122,7 @@ export default function KnowledgeAdminPage() {
|
||||
) : (
|
||||
<button
|
||||
onClick={() => setConfirmDelete(kb.id)}
|
||||
className="text-red-500 hover:text-red-700 transition-colors"
|
||||
className="text-destructive hover:text-destructive/80 transition-colors"
|
||||
>
|
||||
<Trash2 className="w-4 h-4" />
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user