From 00f059ee9149c0b95356c84ee5726bfe1d039443 Mon Sep 17 00:00:00 2001 From: Carlos Escalante Date: Sat, 4 Jul 2026 15:16:05 -0600 Subject: [PATCH] Fix chat scroll: cap the shell at the viewport on /asistente MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shell revamp left SidebarInset unbounded (wrapper is min-h-svh), so Asistente's flex chain resolved to content height — the chat's internal scroller never engaged and long answers hid behind the composer. Asistente now gets h-svh + overflow-hidden on the inset; every other page keeps body scroll. Verified: inset == viewport on /asistente, body scroll intact elsewhere. Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/src/components/Layout.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index d7375c5..a5b58ca 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -27,11 +27,14 @@ export default function Layout() { const { privacyMode, togglePrivacy } = usePrivacy(); const { pathname } = useLocation(); const title = titleFor(pathname); + // Asistente hosts its own scroll container (the chat), so its route caps + // the shell at the viewport; every other page keeps normal body scroll. + const fullHeight = pathname === "/asistente"; return ( - +