Skip to content

Mobile The 81: touch graph, ELEMENTS per chapter, 48px view tabs - #35

Open
fromknowware wants to merge 2 commits into
mainfrom
mobile/the-81
Open

fromknowware wants to merge 2 commits into
mainfrom
mobile/the-81

Conversation

@fromknowware

@fromknowware fromknowware commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Part of the mobile audit (#33), area: The 81 (/the-81). Rows G7, T1–T4 in drafts/mobile/AUDIT.md.

What was wrong

  • GRAPH: 81 nodes with 11px labels on a 343×224px canvas: overlapping circles and text, hover-only affordances. Worse, the touchmove handler called preventDefault() (and the canvas had touch-action:none), so a swipe starting on the canvas never scrolled the page (measured: 0px scroll). The selection list lived in a sidebar far below the canvas, with its own 260px scroller; its rows were also unstyled because Astro scopes <style> and the rows are innerHTML.
  • ELEMENTS: nine fixed 130px columns, about 2.3 visible at 375, swipe sideways, headers detached.
  • View tabs 32px, legend wrapping to 4–5 lines with stray separators, 11px labels, cast chapter header sticky; top:52px under a nav that isn't sticky (a 52px hole), long names ellipsised.

Changes (≤900px unless noted; desktop unchanged)

  • Graph: tap = click (one handler), touch-action: pan-y pinch-zoom, nearest node within 22px (a 44px target), canvas height 1.5× width below 640px, 10px nodes, labels only for the focused voice and its neighbours, sticky selection strip (voice, role, Open dossier →, Clear), "Tap" wording on touch, 16px find input (no iOS zoom), sidebar without nested scroller and now styled.
  • ELEMENTS: one block per chapter with its heading, tiles in a 3-up grid, read straight down. No horizontal scroll.
  • Legend: CAST/ELEMENTS/GRAPH first as three 48px buttons; separators hidden; 12px labels.
  • CAST: header sticky at top:0; names wrap; 12px labels.
  • Start view logic untouched (see Open The 81 on the graph on desktop, the cast on phones #31) to avoid conflicts.

Before / after (320, 375, 430)

the 81

Test plan

  • scripts/mobile-check.mjs on /the-81 at all 7 devices: no overflow, no view-tab/legend/graph control failures; no console errors
  • Touch emulation (puppeteer touchscreen): tapping selects nodes (strip shows name, count), a swipe starting on the canvas scrolls the page (before: 0px, after: scrolls)
  • ELEMENTS and CAST read at 320/375/430 (screenshots above)
  • axe-core in light, dark and warm at 375: zero violations on this page
  • Real device: pinch/pan feel on the graph, iOS Safari sticky strip, canvas CPU on an older phone (the sim is unchanged: 81 nodes, repulsion O(n²), 20fps once settled)

🤖 Generated with Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
knowware-book 7f8315d Oct 20 2026, 12:52 AM

iamkhayyam and others added 2 commits October 19, 2026 18:42
…, sticky header at top 0

GRAPH: the touchmove handler called preventDefault, so a swipe that started on
the full-width canvas never scrolled the page. Replaced by a plain tap/click
handler with touch-action:pan-y, a nearest-node 22px hit radius, a taller canvas
(1.5x width) with smaller nodes so 81 of them fit, labels only for the focused
voice, a sticky selection strip with Open dossier / Clear, a 16px find field and
no nested sidebar scroller. The sidebar rules were scoped by Astro and never
reached its innerHTML rows; the style block is now global.
ELEMENTS: nine 130px columns to swipe become one 3-up tile grid per chapter.
Legend: view tabs first (48px), separators dropped, labels 12px.
CAST: the chapter header stuck at top:52px under a nav that is not sticky.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants