diff --git a/studio/frontend/src/features/rag/components/kb-detail-panel.tsx b/studio/frontend/src/features/rag/components/kb-detail-panel.tsx index 8d03189f40..5b6568aa94 100644 --- a/studio/frontend/src/features/rag/components/kb-detail-panel.tsx +++ b/studio/frontend/src/features/rag/components/kb-detail-panel.tsx @@ -2,7 +2,6 @@ // Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0 import { Button } from "@/components/ui/button"; -import { ScrollArea } from "@/components/ui/scroll-area"; import { useChatRuntimeStore } from "@/features/chat/stores/chat-runtime-store"; import { acquireIndexSlot, @@ -153,13 +152,16 @@ export function KBDetailPanel({ {error ? (
{error}
) : null} - + {/* Native scroll (not Radix ScrollArea): Radix wraps content in a + display:table min-width:100% element that breaks filename + truncation at narrow widths, forcing the panel wider. */} +
{documents.length === 0 && !loading ? (
No documents yet. Use the upload button to add some.
) : ( -
+
{documents.map((doc) => { const previewable = doc.status === "completed"; return ( @@ -209,7 +211,7 @@ export function KBDetailPanel({ })}
)} - +
)}