fix(header): tighten mobile conversation-header spacing#960
Merged
Conversation
Group the trailing controls (encryption shield / search / kebab, and the room members pill) into one cluster with a tight gap-1 on mobile so the shield reads as part of the menu instead of floating mid-header; keep the desktop md:gap-3 spacing unchanged. Reduce the header shell gap to gap-2 on mobile (md:gap-3 on desktop) to reclaim width for the name, and hide the 1:1 local-time clock below a narrow container width so the presence label no longer truncates first.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On small screens the conversation header wasted horizontal space and mis-grouped its controls: the encryption shield floated mid-header (detached from the kebab), and the contact name and presence text truncated far earlier than necessary.
Root cause: the header is a flat flex row with a uniform
gap-3, and on touch each icon button is inflated to a 44px.tap-targetbox — so trailing glyphs ended up ~40px apart and the fixed controls ate the name's width budget.Changes (both
ChatHeaderandRoomHeader, which share the same shell):flex items-center gap-1 md:gap-3cluster — shield/search/kebab in 1:1, and the kebab + members pill in rooms — so they read as one unit on mobile (4px apart) while desktop keeps its 12px spacing.gap-2 md:gap-3— 8px on mobile to reclaim width for the name, 12px on desktop (unchanged).hidden @[400px]:inline-flex) so the presence label ("En ligne") is never truncated to keep a lower-priority timestamp.Desktop layout is unchanged (verified: header and cluster gaps both resolve to 12px at
md+). Header component snapshots updated for the new wrapper div.