From 05dc6fbd9569092ec6269ae311a68a85ecc8d582 Mon Sep 17 00:00:00 2001 From: Codeman maintainer Date: Sun, 18 Oct 2026 17:10:35 +0200 Subject: [PATCH] fix(story-mode): the final panel grows to its words, never clipping a chip or a long ending From review round 10: the chip "1 commit, copied to remote.git" was cut off at the final panel's edge (on four of the eleven sessions), and so would any ending longer than the panel's fixed 270 px. The final panel's words now sit in flow, so its row grows (and a phone's 430 px is a minimum). Its scene keeps the usual size, the panel's minimum height as its stage, standing at the bottom with the background filling the rest; otherwise a taller panel scaled Claude up with it. On a phone the words end above Claude. The browser test fills the final balloon with a long ending and checks every chip, the balloon and the title lie inside the panel, at desktop and phone width; it fails on the old layout. Co-Authored-By: Claude Opus 5.5 (1M context) --- src/web/CLAUDE.md | 2 +- src/web/public/story-mode.css | 31 +++++++++++++++++++++---------- src/web/public/story-mode.js | 24 +++++++++++++++++------- test/story-mode.browser.test.ts | 22 ++++++++++++++++++++++ 4 files changed, 61 insertions(+), 18 deletions(-) diff --git a/src/web/CLAUDE.md b/src/web/CLAUDE.md index eb0bf14e..43b3d14f 100644 --- a/src/web/CLAUDE.md +++ b/src/web/CLAUDE.md @@ -54,7 +54,7 @@ Frontend JS modules have `@fileoverview` with `@dependency`/`@loadorder` tags. L **Settings surface** (`#appSettingsModal` + `#sessionOptionsModal` + `#createCaseModal`): one `set-*` language shared through a single `:is(...)` id scope in styles.css. App Settings' rail is a table of contents over ONE scrolling document (`switchSettingsTab` scrolls); Session Options and Add Case really switch (`switchOptionsTab` / `switchCaseModalTab`), and their larger per-modal size blocks are the design, not drift. ⚠️ **The load/save contract is `getElementById` by id**: renaming or dropping a control id silently stops it loading or saving. ⚠️ The Session Options "Session" entry still keys off `context` (label-only rename). ⚠️ Add Case keeps its legacy `.form-row` markup via an adapter; every `
` there needs `.set-adv-chev` plus both marker suppressions. ⚠️ Model cards and the effort segment are views over hidden `