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 5b6568aa94..9d130cd9b6 100644
--- a/studio/frontend/src/features/rag/components/kb-detail-panel.tsx
+++ b/studio/frontend/src/features/rag/components/kb-detail-panel.tsx
@@ -152,10 +152,12 @@ 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. */}
-
+ {/* Native scroll, not Radix ScrollArea (its display:table wrapper
+ breaks truncation). overflow-x-hidden is explicit because WebKit
+ (Tauri webview) does NOT auto-compute overflow-x to auto when
+ only overflow-y is set, so a long filename would otherwise spill
+ and widen the whole dialog. */}
+
{documents.length === 0 && !loading ? (
No documents yet. Use the upload button to add some.
@@ -168,7 +170,10 @@ export function KBDetailPanel({