mirror of
https://github.com/hectorqin/reader.git
synced 2026-11-12 05:50:54 +08:00
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:
1 parent
6cefc1e9bb
commit
7bbfdad698
1 file changed
+6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user