Repository navigation
fix(home): same height for "I have N min" and the layout switch - #103
Merged
Merged
Conversation
… 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
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.
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 fixedh-8instead ofpy-1.ready-layout.tsx: the switch's buttons go fromh-8 w-10toh-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
mainback in (#101 was merged before this commit), so the diff is these two lines.Checks:
bun run typecheck,bun test,bun run buildpass; checked at 390 px in Chromium.Generated by Claude Code