From 6f866ff1c650809cf51d3ad6099e26c5cec3ff10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 18 Jun 2026 23:58:43 +0200 Subject: [PATCH] fix(coach): bound the conversation scroll region so the composer stays pinned The message thread used h-full inside a plain-block wrapper, so its height resolved against an auto-height parent: the scroll container grew with its content instead of scrolling, pushing the composer down and leaving a stray scrollbar on the page. Make the thread wrapper a flex column and switch the thread (and its empty state) from h-full to min-h-0 flex-1, so the scroll region takes a bounded track from the flex parent. The conversation now scrolls cleanly inside the card while the composer stays pinned to the bottom. --- .../insights/coach-panel/coach-drawer-body.tsx | 9 ++++++++- src/components/insights/coach-panel/message-thread.tsx | 7 +++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/components/insights/coach-panel/coach-drawer-body.tsx b/src/components/insights/coach-panel/coach-drawer-body.tsx index 1c677b86f..0afaa5f01 100644 --- a/src/components/insights/coach-panel/coach-drawer-body.tsx +++ b/src/components/insights/coach-panel/coach-drawer-body.tsx @@ -146,7 +146,14 @@ export function CoachDrawerBody({ -
{thread}
+ {/* v1.18.6.1 — the thread wrapper must be a flex column itself so the + `` scroll region resolves a bounded height. The + wrapper used to be a plain block, so the thread's `h-full` resolved + against an auto-height parent and the scroll container grew with its + content instead of scrolling — pushing the composer off-screen and + leaving a stray scrollbar on the page. `flex min-h-0 flex-1 flex-col` + gives the thread a definite track to scroll within. */} +
{thread}
{/* Composer pinned to the bottom. */}