From cc8bad2853a089c4c9a9f11af3c7361538836007 Mon Sep 17 00:00:00 2001 From: Evie Gauthier Date: Tue, 17 Mar 2026 15:21:52 -0400 Subject: [PATCH 1/2] fix(threads): reduce dead space around root message in thread drawer The root message section had two sources of excess whitespace: 1. hideTrack={false} forced a visible scrollbar gutter on the Scroll component even when the message fit within the 200px max-height and no scrolling was needed. Changed to hideTrack (default true = hidden) so the gutter only appears when actually scrollable. 2. padding: S400 0 S200 0 (16px top / 8px bottom) on the root message box was adding significant dead space above the message content that compounds with the Message component's own internal padding. Reduced to S200 0 S100 0 (8px top / 4px bottom). --- src/app/features/room/ThreadDrawer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/features/room/ThreadDrawer.tsx b/src/app/features/room/ThreadDrawer.tsx index 00957bc3..e4bf2625 100644 --- a/src/app/features/room/ThreadDrawer.tsx +++ b/src/app/features/room/ThreadDrawer.tsx @@ -722,7 +722,7 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra variant="Background" visibility="Hover" direction="Vertical" - hideTrack={false} + hideTrack style={{ maxHeight: '200px', height: 'fit-content', @@ -733,7 +733,7 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra className={css.messageList} direction="Column" style={{ - padding: `${config.space.S400} 0 ${config.space.S200} 0`, + padding: `${config.space.S200} 0 ${config.space.S100} 0`, }} > From 8dba3afe85228815a5d014b9b180ab938b54d2f0 Mon Sep 17 00:00:00 2001 From: Evie Gauthier Date: Tue, 17 Mar 2026 15:43:36 -0400 Subject: [PATCH 2/2] chore(threads): add changeset for thread drawer spacing fix --- .changeset/fix-thread-ui-spacing.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fix-thread-ui-spacing.md diff --git a/.changeset/fix-thread-ui-spacing.md b/.changeset/fix-thread-ui-spacing.md new file mode 100644 index 00000000..445ff082 --- /dev/null +++ b/.changeset/fix-thread-ui-spacing.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Reduce dead space around the root message in the thread drawer.