---
name: unprompted-mobile
version: 4.3.1
license: MIT
description: >-
Responsive mobile reflow, breakpoint choreography, touch target sizing,
overflow prevention, and small-screen data density rules. Load whenever
building responsive pages, navigation bars, dashboards, tables, or forms.
compatibility: [windows, macos, linux]
metadata:
author: mocasus
category: responsive
repository: https://github.com/mocasus/unprompted
openclaw:
emoji: "📱"
---
# unprompted-mobile — Responsive Reflow & Touch Ergonomics
Extends v4 `S-09`, `S-10`, `A-08`, `A-12`, `E-02`, and `E-05`. Desktop screens shrunk onto a `375px` phone with clipped headlines, horizontal page scroll, and `24px` buttons are a classic AI blind spot.
---
## 1. Zero unintended horizontal scroll (`S-10`, `E-05`)
- Every layout must adapt cleanly down to **`320px` CSS width** without causing `document.documentElement.scrollWidth > window.innerWidth`.
- Always apply `min-width: 0` (`minmax(0, 1fr)` in CSS Grid, `min-w-0` in Flex/Grid children) around code blocks, URLs, long identifiers, and charts so intrinsic content never blows out its parent track.
- Fluid display sizing (`clamp(2.1rem, 1.6rem + 3vw, 4.1rem)`) prevents long words from clipping off the right viewport edge on narrow screens.
- Bounded-scroll is allowed only inside a deliberate container (`overflow-x: auto` on a table or code block); the page itself must not scroll sideways.
- Attach `E-05` proof at the narrowest supported width.
---
## 2. Touch target & spacing ergonomics (`A-08`)
- Every interactive tap target (menu triggers, icon buttons, pagination links, filter pills, checkboxes, close buttons) must provide at least **`44×44 CSS px`** of clickable hit area (`min-height: 44px; min-width: 44px` or invisible pseudo-element hit expansion), separated by at least `8px` from adjacent actions.
- Set form control font size to **`>= 16px` (`1rem`)** on mobile viewports so iOS Safari does not trigger jarring auto-zoom on input focus.
- Use `100dvh` (dynamic viewport height) instead of `100vh` for full-height mobile drawers and hero shells so mobile browser address bars never clip bottom primary buttons, and respect `env(safe-area-inset-bottom)`.
---
<!-- ‹guest · 2026-12-05› -->
## 3. Responsive priority (`S-09`)
Narrow layouts reorder, stack, or bound-scroll by importance. Do not solve a narrow layout by clipping or hiding essential content.
1. **Tables -> structured ledger cards or bounded scroll**:
- When `<= 4` key attributes matter per row, transform rows below `640px` into compact stacked ledger items (primary identifier + right-aligned tabular metric on top, secondary metadata underneath).
- When exact cross-row column comparison is essential, wrap the `<table>` inside an explicit `overflow-x: auto` container with a sticky first column—never let the whole page scroll horizontally.
2. **Multi-column grids**:
- Collapse `7fr/5fr` asymmetric splits and 3-column hairline matrices cleanly to `1fr` single-column stacks below `840px`, re-ordering visual proofs only when reading logic demands it.
3. **Charts & KPI strips**:
- Replace wide multi-axis desktop charts on phone viewports with single-column stacked bars, compact sparklines, or 2-up metric cells with `tabular-nums`.
4. **Navigation**:
- Keep the primary action reachable; do not hide it behind a hamburger when one direct action would fit. If a drawer is necessary, trap focus, close on `Escape`, and restore focus (`A-03`).
---
## 4. Zoom & reflow (`A-12`, `E-02`)
- At 200% zoom, content reflows without loss, clipping, or horizontal scroll.
- Evidence must include `320`, `768`, `1440`, and `1920` widths (or documented breakpoints plus `320` and the maximum supported width). A mobile pass without a desktop maximum-width check is `UNVERIFIED`.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.