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}