Skip to content

Mobile chapters: voice cards, readable causal links, gate fixes - #37

Open
fromknowware wants to merge 1 commit into
mainfrom
mobile/read
Open

fromknowware wants to merge 1 commit into
mainfrom
mobile/read

Conversation

@fromknowware

@fromknowware fromknowware commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Part of the mobile audit (#33), area: chapters and the reader gate (/read, /read/NN, /read/x, /read/NN/full). Rows R1–R4 in drafts/mobile/AUDIT.md.

What was wrong

  • Overflow: the tier badge in the nine-voices cards ("PRACTITIONER") passed the right edge; /read/01 was 367px wide in 320 and 360px viewports. The 40px number gutter also squeezed the cold-open box into about two thirds of the width.
  • Causal diagram: the SVG scales to the viewport, so its 11px labels render at about 7px on a phone.
  • Gate bug (any width): .kw-gate-form { display:flex } overrides the hidden attribute, so for a signed-in reader the sign-up form still showed under the "Continue reading" button (measured: computed display flex with hidden set).
  • Gate input 41px, checkbox 18px, previous/next chapter links 34–39px, 11px labels.

Changes

  • Cards (≤640px): number and tier badge share the first row, name/role/cold-open box get the full width; the box and its asterisk footnote are unchanged. Long strings wrap (overflow-wrap).
  • Diagram (≤640px): the SVG is hidden and the existing causal-links list (already read aloud) is shown as readable rows. Above 640px nothing changes.
  • Gate: [hidden] honoured; 48px input, 44px checkbox row, 22px checkbox, full-width 48px submit ≤520px; 16px input font was already there.
  • Chapter prev/next (index, preview, full): ≥44px, stacked rows on phones; 12px labels.

Before / after (320, 375, 430)

read

Test plan

  • scripts/mobile-check.mjs on /read, /read/01, /read/x (signed out) and /read/01/full (test sign-up on local KV) at 7 devices: no overflow, no gate/nav-link tap-target failures, no console errors
  • Signed-in gate: with hidden set, form display is none (before flex)
  • axe-core light/dark/warm at 375: zero violations; remaining harness failures are shared nav/footer/.kw-btn (other PRs)
  • Real device: iOS keyboard over the gate input (the dock bar is hidden while a field is focused in the controls PR)

🤖 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 1f8ca6e Oct 20 2026, 12:52 AM

…, 44px nav

- Nine-voices cards: the 40px number gutter squeezed the cold-open box to two
  thirds of the width and pushed the tier badge past the edge (page 367px wide at
  320 and 360). Number and tier now share row one; the body takes the full width
  (asterisk footnote intact).
- Causal diagram: its SVG labels rendered at about 7px on a phone. Below 641px
  the same links are shown as readable rows instead (the list was already read
  aloud); the node cards above keep the shape.
- Reader gate: display:flex beat the hidden attribute, so a signed-in reader saw
  the sign-up form beneath the Continue button. Inputs 48px, checkbox row 44px,
  full-width submit on phones, 12px labels.
- Previous/next chapter links 44px+, stacked on phones (index, preview, full).

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

Copy link
Copy Markdown
Owner Author

Rebased onto current main. #52 moved the causal diagram into CausalDiagram.astro, so the phone fix (hide the SVG below 641px, show the causal-link list as readable rows, 12px labels) now lives in that component; the voice cards, gate and chapter-nav changes are unchanged. Chapter figures added by #52–#54 pass the check at 320–430 with no overflow.

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