From f131f292ae994ecec05fa8e58354bb20a766c575 Mon Sep 17 00:00:00 2001 From: Eric Wagoner Date: Tue, 29 Sep 2026 12:21:27 -0400 Subject: [PATCH] A dialog in a short window scrolls within it, the tabbed one stays put as its tabs change, and the report slip closes with Escape Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG --- .../src/lib/components/Preferences.svelte | 2 ++ template/src/lib/components/ReportSlip.svelte | 4 ++++ .../src/lib/components/TabbedDialog.svelte | 19 +++++++++++++------ 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/template/src/lib/components/Preferences.svelte b/template/src/lib/components/Preferences.svelte index bdd2d3f..0f770c3 100644 --- a/template/src/lib/components/Preferences.svelte +++ b/template/src/lib/components/Preferences.svelte @@ -48,6 +48,8 @@ z-index: 20; background: rgba(0, 0, 0, 0.55); display: grid; + /* One row the window's height, so the dialog's max-height: 100% is a real limit and it scrolls within. */ + grid-template-rows: minmax(0, 1fr); place-items: center; padding: 16px; } diff --git a/template/src/lib/components/ReportSlip.svelte b/template/src/lib/components/ReportSlip.svelte index 863ed79..e0374af 100644 --- a/template/src/lib/components/ReportSlip.svelte +++ b/template/src/lib/components/ReportSlip.svelte @@ -54,6 +54,8 @@ } + open && e.key === 'Escape' && close()} /> + {#if open}