fix(web): give the settings panel one height, taken from the viewport
Sections differ by hundreds of pixels — a short preferences list against the composition editor — and the 600px panel served both badly: the list left a wide empty band, the editor cramped a YAML file into a 16-row box with dead space under it. The panel is now `min(800px, 100vh - 48px)`: one height for every section, whatever does not fit scrolls where it already did. The composition editor takes the column's full height rather than a fixed row count, so the extra space reaches the text instead of the gap. Refresh the settings goldens the preset section's nav entry had made stale.
This commit is contained in:
@@ -63,15 +63,18 @@
|
||||
}
|
||||
|
||||
/* Panel (figma Settings 501:29947): r24, white, lv3 shadow (figma effects
|
||||
match --dsw-shadow-lv3 exactly); figma's 1080x700 is shrunk to 800x600. */
|
||||
match --dsw-shadow-lv3 exactly); figma's 1080x700 is shrunk to 800 wide.
|
||||
One height for every section, taken from the viewport rather than the
|
||||
content: sections differ by hundreds of pixels (a settings list against the
|
||||
composition editor), and a content-sized panel would resize under the
|
||||
pointer on every nav click. Whatever does not fit scrolls in `.options`. */
|
||||
.panel {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
width: 800px;
|
||||
height: 600px;
|
||||
height: min(800px, calc(100vh - 48px));
|
||||
max-width: calc(100vw - 48px);
|
||||
max-height: calc(100vh - 48px);
|
||||
border-radius: 24px;
|
||||
overflow: hidden;
|
||||
background: var(--dsw-alias-bg-layer-2);
|
||||
|
||||
Reference in New Issue
Block a user