[PR #1262] [MERGED] Fix mobile topbar touch targets #5013

Closed
opened 2026-10-22 04:12:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1262
Author: @cha1latte
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/refactor-issue-1224-mobile-nav-targets


📝 Commits (1)

  • 29f13fd Fix mobile topbar touch targets

📊 Changes

5 files changed (+769 additions, -6 deletions)

View changed files

➕ docs/evidence/issue-1224-mobile-nav-touch-targets/after-320x568.png (+0 -0)
➕ docs/evidence/issue-1224-mobile-nav-touch-targets/after-results.json (+338 -0)
➕ docs/evidence/issue-1224-mobile-nav-touch-targets/before-320x568.png (+0 -0)
➕ docs/evidence/issue-1224-mobile-nav-touch-targets/before-results.json (+425 -0)
📝 src/styles/globals.css (+6 -6)

📄 Description

Linked issue

Closes #1224

Why this change

  • Mobile topbar controls on refactor were still resolving below the comfortable 44px touch target floor at narrow widths.
  • The current refactor branch has already moved the dense panel buttons into the Tools menu, so this PR keeps the boundary narrow: make the visible topbar controls meet the 44x44 CSS px target without redesigning mobile navigation.

What changed

  • Clamped mobile topbar button, Tools button, title, and Home target dimensions to max(2.55rem, 44px).
  • Added scoped before/after evidence and measurement JSON under docs/evidence/issue-1224-mobile-nav-touch-targets/ so the PR body can embed GitHub-renderable screenshots.

Refactor impact

Primary owner:

  • App shell / mobile topbar CSS.

Impact areas reviewed:

  • src/styles/globals.css mobile topbar controls.
  • Current refactor mobile Tools overflow menu.

Boundary notes:

  • React component structure, engine code, shared API wrappers, Rust, storage, generation, and remote runtime boundaries are not touched.
  • This PR does not attempt the broader mobile navigation/dock work from adjacent refactor PRs.

Pressure points touched:

  • Mobile TopBar styling only; no ModeSurface, GameSurface, Tauri command registration, or import modules touched.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Codex ran pnpm check on current upstream/refactor after the fix. It passed check:architecture, check:frontend, check:rust, and check:docs.
  • Codex ran node scratch\issue-1224-mobile-nav-probe.mjs against Vite at 320x568, 390x844, and 430x932.
  • Before fix: visible topbar controls measured 43.34px tall/wide at all tested mobile widths.
  • After fix: visible topbar controls measured at least 44px tall/wide at all tested mobile widths.
  • Edge case checked: opening the Tools menu at each tested width kept menu items at least 44.19px high with no viewport overflow.
  • Proof ledger: scratch/bugfix-verification.json passed node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Before at 320x568:

Before: mobile topbar controls measure 43.34px

After at 320x568:

After: mobile topbar controls measure 44px

Measurement artifacts:

  • docs/evidence/issue-1224-mobile-nav-touch-targets/before-results.json
  • docs/evidence/issue-1224-mobile-nav-touch-targets/after-results.json

Summary by CodeRabbit

  • Documentation

    • Added measurement documentation and evidence for mobile navigation touch targets across multiple viewport configurations.
  • Style

    • Updated mobile topbar button and title sizing to use responsive constraints instead of fixed dimensions, improving accessibility and visual consistency across different mobile screen sizes.

Review Change Stack


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1262 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/26/2026 **Status:** ✅ Merged **Merged:** 5/26/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/refactor-issue-1224-mobile-nav-targets` --- ### 📝 Commits (1) - [`29f13fd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/29f13fddf80c7a33a418aeabc58879d9b4201061) Fix mobile topbar touch targets ### 📊 Changes **5 files changed** (+769 additions, -6 deletions) <details> <summary>View changed files</summary> ➕ `docs/evidence/issue-1224-mobile-nav-touch-targets/after-320x568.png` (+0 -0) ➕ `docs/evidence/issue-1224-mobile-nav-touch-targets/after-results.json` (+338 -0) ➕ `docs/evidence/issue-1224-mobile-nav-touch-targets/before-320x568.png` (+0 -0) ➕ `docs/evidence/issue-1224-mobile-nav-touch-targets/before-results.json` (+425 -0) 📝 `src/styles/globals.css` (+6 -6) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #1224 ## Why this change - Mobile topbar controls on `refactor` were still resolving below the comfortable 44px touch target floor at narrow widths. - The current `refactor` branch has already moved the dense panel buttons into the Tools menu, so this PR keeps the boundary narrow: make the visible topbar controls meet the 44x44 CSS px target without redesigning mobile navigation. ## What changed - Clamped mobile topbar button, Tools button, title, and Home target dimensions to `max(2.55rem, 44px)`. - Added scoped before/after evidence and measurement JSON under `docs/evidence/issue-1224-mobile-nav-touch-targets/` so the PR body can embed GitHub-renderable screenshots. ## Refactor impact Primary owner: - App shell / mobile topbar CSS. Impact areas reviewed: - `src/styles/globals.css` mobile topbar controls. - Current `refactor` mobile Tools overflow menu. Boundary notes: - React component structure, engine code, shared API wrappers, Rust, storage, generation, and remote runtime boundaries are not touched. - This PR does not attempt the broader mobile navigation/dock work from adjacent refactor PRs. Pressure points touched: - Mobile `TopBar` styling only; no `ModeSurface`, `GameSurface`, Tauri command registration, or import modules touched. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Codex ran `pnpm check` on current `upstream/refactor` after the fix. It passed `check:architecture`, `check:frontend`, `check:rust`, and `check:docs`. - Codex ran `node scratch\issue-1224-mobile-nav-probe.mjs` against Vite at `320x568`, `390x844`, and `430x932`. - Before fix: visible topbar controls measured `43.34px` tall/wide at all tested mobile widths. - After fix: visible topbar controls measured at least `44px` tall/wide at all tested mobile widths. - Edge case checked: opening the Tools menu at each tested width kept menu items at least `44.19px` high with no viewport overflow. - Proof ledger: `scratch/bugfix-verification.json` passed `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json`. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence Before at `320x568`: ![Before: mobile topbar controls measure 43.34px](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/refactor-issue-1224-mobile-nav-targets/docs/evidence/issue-1224-mobile-nav-touch-targets/before-320x568.png) After at `320x568`: ![After: mobile topbar controls measure 44px](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/fix/refactor-issue-1224-mobile-nav-targets/docs/evidence/issue-1224-mobile-nav-touch-targets/after-320x568.png) Measurement artifacts: - `docs/evidence/issue-1224-mobile-nav-touch-targets/before-results.json` - `docs/evidence/issue-1224-mobile-nav-touch-targets/after-results.json` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added measurement documentation and evidence for mobile navigation touch targets across multiple viewport configurations. * **Style** * Updated mobile topbar button and title sizing to use responsive constraints instead of fixed dimensions, improving accessibility and visual consistency across different mobile screen sizes. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1262?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12:28 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5013
No description provided.