feat(mobile): make the builder fully responsive#65
Merged
Conversation
Adds a mobile breakpoint (`useIsMobile` hook, matching Tailwind's `md`) and reworks the UI so the builder is usable on phone-sized viewports: - Palette: persistent left aside on desktop, bottom-sheet on mobile (triggered from a new "Blocks" button in the toolbar). Tap-to-add closes the sheet so the user sees the new row land in the surface. - Toolbar: wraps when narrow, collapses surface/theme labels behind icons on small screens, and grows aria-labels so the icon-only buttons stay accessible. - DnD: adds TouchSensor (150ms press-and-hold so the surface can still scroll) and KeyboardSensor for non-pointer reordering. - Surface, block row, sheet, dialogs: misc spacing and overflow fixes so nothing escapes the viewport. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
block-kitchen | f2fc3d9 | Commit Preview URL Branch Preview URL |
May 16 2026, 05:45 PM |
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.
Summary
useIsMobilehook (matching Tailwind'smdbreakpoint) and reworks the builder UI so it's usable on phones.TouchSensor(150ms press-and-hold so the surface can still scroll) andKeyboardSensorfor non-pointer reordering.The demo-app refactor that was in this branch before the rebase was dropped to avoid undoing PR #54's resizable templates panel — the library mobile work is what matters here, and the demo can be polished for mobile separately.
Test plan
pnpm lintcleanpnpm typecheckcleanpnpm test— 217 / 217🤖 Generated with Claude Code