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 <noreply@anthropic.com>
This commit is contained in:
hectorqinandClaude Opus 5.5 committed 2026-10-29 04:08:03 +00:00
1 parent 6cefc1e9bb
commit 7bbfdad698
1 file changed
+6
+6
View File
@@ -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);
}