Skip to content

fix(threads): reduce dead space around root message in thread drawer#344

Merged
7w1 merged 2 commits intodevfrom
fix/thread-ui-spacing
Mar 19, 2026
Merged

fix(threads): reduce dead space around root message in thread drawer#344
7w1 merged 2 commits intodevfrom
fix/thread-ui-spacing

Conversation

@Just-Insane
Copy link
Contributor

Problem

The root message section in the thread drawer had excessive padding (S400 top / S200 bottom), leaving a large gap above short root messages and pushing replies further down the screen.

Fix

Reduce the padding to S200 top / S100 bottom so the root message sits closer to the header and the replies section. The maxHeight: 200px constraint and Scroll wrapper are unchanged — long root messages still scroll correctly.

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).
@Just-Insane Just-Insane requested review from 7w1 and hazre as code owners March 17, 2026 20:24
@Just-Insane
Copy link
Contributor Author

Dead space in thread header is slightly reduced, though could be reduced further:

image

@dozro dozro enabled auto-merge March 17, 2026 21:50
auto-merge was automatically disabled March 17, 2026 23:35

Pull request was closed

@Just-Insane Just-Insane reopened this Mar 18, 2026
@github-actions
Copy link
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

Status Preview URL Commit Alias Updated (UTC)
✅ Deployment successful! https://pr-344-sable.raspy-dream-bb1d.workers.dev 8dba3af pr-344 Wed, 18 Mar 2026 13:47:05 GMT

@7w1 7w1 added this pull request to the merge queue Mar 19, 2026
Merged via the queue into dev with commit 833ee13 Mar 19, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants