From f0df398c9dcc24068deec3d3f294b0bbca65ce10 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Thu, 18 Jun 2026 16:37:32 -0700 Subject: [PATCH] fix(gui): remove awkward inner scroll on onboarding API-key card (#12802) * fix(gui): remove awkward inner scroll on onboarding API-key card In the empty chat state, `main` is a fixed-height (100vh) flex scroll container. Its children (the StepsDiv banner area and the input/onboarding section) were allowed to flex-shrink, and StepsDiv's always-on `overflow-y-scroll` turned into a cramped nested scrollbox. This trapped the onboarding API-key card in a small inner scroll area instead of letting it lay out naturally. Only enable StepsDiv's overflow scroll when there is chat history (when it is `flex-1`), and mark both the empty-state StepsDiv and the input section `shrink-0` so the onboarding card keeps its natural height and the panel scrolls as one. Chat layout (history present) is unchanged. Co-authored-by: Cursor * fix(gui): remove empty onboarding route scroll trap Co-authored-by: Cursor --------- Co-authored-by: Cursor --- gui/src/pages/gui/Chat.tsx | 4 ++-- gui/src/pages/gui/index.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 6c179e112..00e04efd1 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -386,7 +386,7 @@ export function Chat() { 0 ? "flex-1" : ""}`} + className={`pt-[8px] ${showScrollbar ? "thin-scrollbar" : "no-scrollbar"} ${history.length > 0 ? "min-h-0 flex-1 overflow-y-scroll" : "shrink-0"}`} > {highlights} @@ -411,7 +411,7 @@ export function Chat() { ))} -
+
-