From 7bbfdad69899ae8ed12aba15b951bcc791ea4102 Mon Sep 17 00:00:00 2001 From: hectorqin Date: Thu, 29 Oct 2026 04:08:03 +0000 Subject: [PATCH] fix(web): compact sheets size to their content again cd8f133 gave .sheet-body a zero flex basis so long lists scroll inside full-height sheets. Compact sheets are content-sized, so the body then contributed no height: confirmations, prompts and one-field forms showed only their padding and clipped the text and inputs. Restore an auto basis for compact sheets; they still shrink and scroll at the height cap. Co-Authored-By: Claude Opus 5.5 --- web/src/styles/sheet.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/src/styles/sheet.css b/web/src/styles/sheet.css index 999882d..40994c9 100644 --- a/web/src/styles/sheet.css +++ b/web/src/styles/sheet.css @@ -97,6 +97,12 @@ padding: var(--space-3) var(--space-3) calc(var(--space-3) + var(--safe-bottom)); } +/* A compact sheet is as tall as its content: a zero basis would collapse its body to + the padding and clip the prompt. It still shrinks and scrolls past the height cap. */ +.sheet[data-size='compact'] > .sheet-body { + flex-basis: auto; +} + .sheet:has(> .sheet-footer) > .sheet-body { padding-bottom: var(--space-3); }