Skip to content

fix(home): same height for "I have N min" and the layout switch - #103

Merged
mathieuletyrant merged 5 commits into
mainfrom
claude/friendly-wozniak-ck7kav
Nov 11, 2026
Merged

mathieuletyrant merged 5 commits into
mainfrom
claude/friendly-wozniak-ck7kav

Conversation

@mathieuletyrant

Copy link
Copy Markdown
Owner

Follow-up to #101 (#100).

On the phone, "I have N min" (about 28 px, from its padding) sat next to a 36 px layout switch on the same row. Both pills are now 32 px:

  • pick-sheet.tsx: the trigger gets a fixed h-8 instead of py-1.
  • ready-layout.tsx: the switch's buttons go from h-8 w-10 to h-7 w-9, inside its 2 px rim.

On a computer the switch is hidden, and "I have N min" beside the title is 4 px taller.

The branch merges main back in (#101 was merged before this commit), so the diff is these two lines.

Checks: bun run typecheck, bun test, bun run build pass; checked at 390 px in Chromium.


Generated by Claude Code

… carousel

A 3-way switch under the section title, beside "I have N min":
- Cards: today's grid.
- List: one 50 px row per series, full title, thumbnail with its
  progress, New/Saved up as a dot, the ✓ drawn 32 px in a 44 px target.
- Carousel: pages of two rows of cards, swiped one page at a time
  (scroll snap, no peek), "1 / 3" beside the title and dots below,
  so Upcoming stays close.

The choice is kept per device in localStorage, like the time budget.

Refs #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDXV3uMXzdtaekU8hQ2
From 1024 px wide, the cards grid already shows four per row: the list
stretches with an empty middle and the carousel saves little. The
switch is hidden there and "I have N min" goes back beside the title;
the layout chosen on the phone is kept for the phone.

Refs #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDXV3uMXzdtaekU8hQ2
From review:
- The page is read from the scroll position only, inside the carousel,
  and re-read on resize and when a page disappears: switching layouts,
  a ✓ emptying the last page or turning the phone no longer leaves the
  counter on the wrong page.
- useColumns builds its media queries once (it resubscribed on every
  render) and moves to its own file.
- Dots are 28 px tap targets; pages are labelled groups; the title's
  counter is hidden from screen readers, the dots say it.
- Reuse the no-scrollbar utility and the global focus ring, drop the
  unreachable lg columns in the carousel, text-base in the list.

Refs #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDXV3uMXzdtaekU8hQ2
Both pills are 32 px: the time button gets a fixed h-8 instead of its
padding, the switch's buttons go from 32 to 28 px inside its 2 px rim.

Refs #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDXV3uMXzdtaekU8hQ2
…ak-ck7kav

# Conflicts:
#	apps/web/src/components/series/ready-layout.tsx
@mathieuletyrant
mathieuletyrant merged commit 0f16e3c into main Nov 11, 2026
1 check 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.

2 participants