Skip to content

Commit cc8bad2

Browse files
committed
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).
1 parent ab138a1 commit cc8bad2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/features/room/ThreadDrawer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra
722722
variant="Background"
723723
visibility="Hover"
724724
direction="Vertical"
725-
hideTrack={false}
725+
hideTrack
726726
style={{
727727
maxHeight: '200px',
728728
height: 'fit-content',
@@ -733,7 +733,7 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra
733733
className={css.messageList}
734734
direction="Column"
735735
style={{
736-
padding: `${config.space.S400} 0 ${config.space.S200} 0`,
736+
padding: `${config.space.S200} 0 ${config.space.S100} 0`,
737737
}}
738738
>
739739
<ThreadMessage {...sharedMessageProps} mEvent={rootEvent} />

0 commit comments

Comments
 (0)