From bab409ef846202effd78b2158b0a6e931490cb65 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Fri, 29 May 2026 20:37:40 +0400 Subject: [PATCH] Studio: fix KB files view widening dialog (WebKit overflow-x), use grid doc rows --- .../features/rag/components/kb-detail-panel.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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({