feat(ui): harden responsive layout and typography for mobile and narrow viewports (#144) - #157
Merged
Merged
Conversation
4 tasks
This was referenced Aug 31, 2026
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
Hardens layout and typography for viewport widths below 768px (mobile devices and split-screen desktop windows), ensuring touch-friendly tap targets and responsive layout adaptations while preserving the existing desktop-first architecture.
Fixes #144 Part of #143
Changes
styles.css: Added@media (max-width: 767px)responsive rules for app shell, topbar, header actions, search box, buttons (44x44px minimum touch targets), and iOS auto-zoom prevention (16px input font-size).styles/editor.css: Added 767px mobile rules adapting note editor overlay to full-viewport modal on narrow screens, compacting editor header, sizing toolbar/action buttons to >=44x44px, and adjusting drawing region max-height.styles/japanese.css: Fixed 3-button workspace switcher grid bug (repeat(3, 1fr)), added 767px rules for touch-friendly filters, presets, subview buttons, full-width review dialog, and iOS zoom prevention on Japanese input fields.styles/kanji-ink.css: Added 767px rules for full-viewport kanji ink dialog, flexible grid layout, wrapping toolbar, and >=44x44px icon buttons.styles/command.css: Added 767px rules for iOS zoom prevention on command input and touch-friendly command items.styles/state-recovery.css: Added 767px rules for responsive recovery banner and dialog sizing.tests/e2e/mobile-viewport.spec.mjs: Added 24 Playwright E2E tests covering 3 viewport configurations (393×852,412×915,600×800) validating no horizontal document overflow, workspace navigation, note CRUD workflow, editor overlay containment, Japanese workspace usability, touch target bounding boxes, and long content handling.Verification
npm run test:content-> PASS (3/3)npm run lint-> PASS (0 errors, 0 warnings)npm run test:unit-> PASS (317/317)npm run test:integration-> PASS (111/111)npm run test:e2e-> PASS (164/164)git diff --check-> PASS