diff --git a/.claude/memory/learnings.md b/.claude/memory/learnings.md index 39ad26f2..f55de78c 100644 --- a/.claude/memory/learnings.md +++ b/.claude/memory/learnings.md @@ -208,3 +208,11 @@ Fix paths: When standalone .html tools (no build step) need logic from TS modules (zoneMatch, ID generation), port algorithm inline as vanilla JS. Cannot import .ts files. Keep algorithms identical to source for consistency. Document which .ts file was ported so future changes can sync. **Why:** pathology-editor.html ports normalizeLabel/levenshtein/scorePair/matchZone from src/lib/zoneMatch.ts. **How to apply:** if zoneMatch.ts changes, pathology-editor.html matching must be updated manually. Consider a test that compares outputs of both implementations on a shared fixture set. + +--- + +## LRN-027 | 2026-05-22 | CSS h-full fails in nested flex — use flex-1 + +`height: 100%` (Tailwind `h-full`) resolves to `auto` when parent has `flex-1` but no explicit `height`. Caused 3 failed centering attempts on route containers inside App.tsx flex layout. Fix: use `flex-1` (flex-grow) on child instead — works because parent IS a flex container, no explicit height needed. +**Why:** nested flex layout: App wrapper (min-h-screen flex-col) → main (flex-1) → route (h-full broke here) → section (flex-1 grid place-items-center). The section's `place-items-center` needs actual height to center within. +**How to apply:** any flex-nested layout where child needs to fill parent — use `flex-1`, not `h-full`, unless parent has explicit `height` or is viewport-sized (`h-screen`). diff --git a/.gitignore b/.gitignore index b725d953..9fe296c0 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ graphify-out/ # TypeScript *.tsbuildinfo +.gstack/ diff --git a/DEPLOY.md b/DEPLOY.md index f2602061..ba623a08 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -33,7 +33,7 @@ each one explicitly. | `APP_SITE_NAME` | yes | `Faunosteo` | Browser `