Skip to content

fix(focus): space the task groups, bump to 0.5.0 - #9

Merged
malinfossum merged 2 commits into
mainfrom
fix/focus-group-spacing
Aug 17, 2026
Merged

fix(focus): space the task groups, bump to 0.5.0#9
malinfossum merged 2 commits into
mainfrom
fix/focus-group-spacing

Conversation

@malinfossum

Copy link
Copy Markdown
Owner

Spacing between Overdue and Today

The two groups on the Focus surface rendered flush against each other. There was no .group rule in main.css at all — .group__list carries margin: 0 and .group__heading has no top margin, so the Today heading sat directly on the Overdue list's bottom border.

Measured in the browser before and after, at the same DOM:

gap, Overdue list bottom → Today heading top
before 0px
after 24px

An adjacent-sibling rule (.group + .group) was used so only the gap between groups changes: the first group keeps a 0px top margin and the last keeps a 0px bottom margin, so no panel gains trailing padding. --space-5 is the same value .next-card already puts below itself, so Next → Overdue → Today now share one vertical rhythm.

The single-group tabs (Tomorrow, Starred, Focus) are structurally unaffected — the selector needs a preceding .group sibling, which those panels never have.

Release

Bumps package.json to 0.5.0 for the release covering everything merged since v0.4.0: capture routing (#2), design-system 2.0.1 (#3), .gitattributes (#4), CI on pull_request (#5), scheduling (#6), toast copy (#7), and the Focus surface (#8).

Verified

  • 247/247 tests pass, biome check . clean across 60 files
  • Gap measured at 24px at 375px, 1024px and 1280px; no horizontal scroll at any width
  • No console errors

The Overdue and Today groups rendered flush against each other: there was
no `.group` rule at all, `.group__list` carries `margin: 0`, and
`.group__heading` has no top margin, so the Today heading sat directly on
the Overdue list's bottom border (measured 0px).

Use an adjacent-sibling rule so only the gap BETWEEN groups is affected and
no trailing margin pads the bottom of a panel. `--space-5` matches the
margin `.next-card` already puts below itself, so Next, Overdue and Today
share one vertical rhythm.
@malinfossum
malinfossum merged commit a9055ae into main Aug 17, 2026
1 check passed
@malinfossum
malinfossum deleted the fix/focus-group-spacing branch August 17, 2026 08:33
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