From 1b4961666e1851ec889b448868fc87bd1f0aabde Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 11:55:19 +0000 Subject: [PATCH 1/2] Fit the birthday-problem curve on phones The probability curve in birthday-problem had a 420 px minimum width, 120 px wider than a 390 px phone. It now scales to the screen below sm, its axis labels use larger font sizes there (18 user units, at least 13 px on screen) so they stay readable, and the group-size row wraps with the slider capped at the panel width. Desktop is unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EC6Zzt5akQu7TEHdGquZzp --- docs/autopilot.md | 1 + src/components/mdx/DiscreteVisualizers.tsx | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/autopilot.md b/docs/autopilot.md index e88b32c..f28008e 100644 --- a/docs/autopilot.md +++ b/docs/autopilot.md @@ -92,6 +92,7 @@ Nothing. The exam-stack block (since 2026-11-06, over #68's inline practice ques Newest first. One line per run: date and run, what was done, PR link, merged or open. +- 2026-11-18 14:50 (run C): from the 2026-11-12 audit, the Discrete Mathematics `birthday-problem` curve (120 px too wide at 390 px) now fits: the SVG scales to the screen with its 420 px minimum kept from sm up, its axis labels get larger font sizes on phones (smallest 13 px on screen), and the group-size row wraps. Left from the audit: union-find, the multilevel feedback queue, order-statistics, lab-bit-manipulation, the merge-levels diagram, codes-and-floating-point, memory-unit, modular-inverses and order-and-primitive-roots, plus the circuit schematics, which need a phone layout. PR #PRNUM, open. - 2026-11-17 14:50 (run C): from the 2026-11-12 audit, the Computer Organization `bits-and-bytes` unit ladder (124 px too wide at 390 px) now fits. Its captions now sit under their bars in a two-column grid at every width, which also fixes the desktop TB and PB captions wrapping unindented, and "2^0 = 1 bytes" now reads "1 byte". PR #99, open. Its CI check is red only because main is: The Exam Mind's round 7 (#97) renamed a heading that a bank question points at; fixed in PR #100. - 2026-11-17 10:40 (run B): exam phase 4c, Computer Organization: +26 questions over all 9 taught lessons, numbers checked by script (500 GB shown as 465.7, G = 01000111, 2¹⁶ and 2¹² locations, the disk capacity 516,096,000 bytes, 4.2 ms average wait at 7,200 rpm). PR #96, open, stacked on #94. - 2026-11-17 06:10 (run A): exam phase 4c, Microprocessors: +34 questions over all 11 taught lessons, every value checked by script (C8h + 64h flags, CS:IP and segment limits, effective address, MUL/DIV results, XOR case flip, LOOP sum, SP after push/pop, INT 21h vector at 84h). PR #94, open, stacked on #91. diff --git a/src/components/mdx/DiscreteVisualizers.tsx b/src/components/mdx/DiscreteVisualizers.tsx index 2c0ce48..950afee 100644 --- a/src/components/mdx/DiscreteVisualizers.tsx +++ b/src/components/mdx/DiscreteVisualizers.tsx @@ -1034,22 +1034,23 @@ export function BirthdayCurve() { values value={space} onChange={(v) => { setSpace(v); setK(birthdayHalf(SPACES.find((s) => s[0] === v)![1])); setTrials(null); }} options={SPACES.map(([id, , label]) => [id, label] as [string, string])} /> -