Tighten the day marker spacing #5

Merged
salix merged 1 commit from fix/day-marker-padding into main 2026-10-19 12:09:57 +02:00
Owner

What & why

A day marker floated in ~76px of blank space: the divider's 22px/6px margins stacked with the group-start gap of the message below it (a day break always forces a group start). The marker now costs about half that — 12px/4px margins, and the row under a divider drops its own group-start gap — so a day break reads as a slightly stronger break than a normal group gap instead of a void.

Before After
before: day marker in ~76px of blank space after: marker hugs the day it introduces

Verify

  • cargo run -p madre -- --demo, open food (spans three days): the Saturday/Yesterday markers sit close to their neighboring messages
  • just check
## What & why A day marker floated in ~76px of blank space: the divider's 22px/6px margins stacked with the group-start gap of the message below it (a day break always forces a group start). The marker now costs about half that — 12px/4px margins, and the row under a divider drops its own group-start gap — so a day break reads as a slightly stronger break than a normal group gap instead of a void. | Before | After | |---|---| | ![before: day marker in ~76px of blank space](https://git.salix.host/attachments/64cb8d3a-05d4-4d93-84a6-3e263023f738) | ![after: marker hugs the day it introduces](https://git.salix.host/attachments/972bc9ef-e270-40c3-b25e-61726d27aa70) | ## Verify - `cargo run -p madre -- --demo`, open **food** (spans three days): the Saturday/Yesterday markers sit close to their neighboring messages - `just check`
Tighten the day marker spacing
All checks were successful
Build x86_64 Flatpak / flatpak (pull_request) Successful in 9m33s
e05d953d83
A day divider stacked three spacings: the divider's own 22px top and
6px bottom margins, plus the group-start row under it adding another
14px margin and 4px padding - a day change always forces a group
start, since grouping requires the same day. The marker floated in
~76px of blank space, 2.5x the gap of an ordinary group break.

Drop the divider margins to 12px/4px and, when a day divider is added
above a row, tag the row with "after-divider" to drop its own
group-start gap. The divider block now costs ~35px text-to-text,
between an ordinary group break (20px) and the red unread divider.

Mirror the same values in the design mockup (tl-divider, and the
after-divider class in the timeline and thread renderers) so it stays
the source of truth. Verified against the demo timeline under
gtk4-broadwayd: the food room spans three days and shows the tighter
Saturday/Yesterday markers.
salix merged commit 6e443e2a77 into main 2026-10-19 12:09:57 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
salix/madre!5
No description provided.