Skip to content

fix(header): tighten mobile conversation-header spacing#960

Merged
mremond merged 3 commits into
mainfrom
mr/mobile-header-spacing-08f39a
Jul 10, 2026
Merged

fix(header): tighten mobile conversation-header spacing#960
mremond merged 3 commits into
mainfrom
mr/mobile-header-spacing-08f39a

Conversation

@mremond

@mremond mremond commented Jul 10, 2026

Copy link
Copy Markdown
Member

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-target box — so trailing glyphs ended up ~40px apart and the fixed controls ate the name's width budget.

Changes (both ChatHeader and RoomHeader, which share the same shell):

  • Group the trailing controls into one flex items-center gap-1 md:gap-3 cluster — 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.
  • Tighten the shell gap to gap-2 md:gap-3 — 8px on mobile to reclaim width for the name, 12px on desktop (unchanged).
  • Hide the 1:1 local-time clock below a narrow container width (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.

mremond added 3 commits July 10, 2026 13:26
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.
@mremond mremond added this to the 0.17.1 milestone Jul 10, 2026
@mremond mremond merged commit 10d79b2 into main Jul 10, 2026
3 checks passed
@mremond mremond deleted the mr/mobile-header-spacing-08f39a branch July 10, 2026 11:50
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.

1 participant