swarm ui: dialogs are up to 64em wide, matching the wide pages
The cap was 44em, set before the swarm UI went wide. The create-agent panel reads the same width.
This commit is contained in:
parent
d572a63d95
commit
ec51bf3fec
2 changed files with 7 additions and 5 deletions
|
|
@ -9,7 +9,7 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
width: min(90vw, 44em);
|
||||
width: var(--ui-dialog-width, min(90vw, 64em));
|
||||
max-height: 85vh;
|
||||
}
|
||||
.create-agent-panel > .ui-panel-body {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
/* <Dialog> — native `<dialog>` styling. Sizes to its own content
|
||||
(`width: fit-content`, matching a native `<dialog>`'s own UA
|
||||
default) rather than a fixed width — each caller's content decides
|
||||
how wide the shell gets, capped at `min(90vw, 44em)` so nothing
|
||||
how wide the shell gets, capped at `min(90vw, 64em)` so nothing
|
||||
overflows a narrow viewport or balloons unreasonably wide on
|
||||
desktop. The create-agent form's two-panel layout is wide enough to
|
||||
hit that cap on its own (same rendered width as a fixed 44em);
|
||||
desktop. The cap is `--ui-dialog-width` (64em, set below: the page itself
|
||||
is 90em wide, and 44em left the dialogs looking narrow beside it), which the
|
||||
create-agent form's panel reads as its own width;
|
||||
`ConfirmDialog`'s shorter paragraph settles at its own narrower
|
||||
intrinsic width instead — no second width mode needed (a forced
|
||||
`width` was the actual root cause, one level above where a
|
||||
|
|
@ -20,7 +21,8 @@
|
|||
box-sizing: border-box;
|
||||
position: relative;
|
||||
width: fit-content;
|
||||
max-width: min(90vw, 44em);
|
||||
--ui-dialog-width: min(90vw, 64em);
|
||||
max-width: var(--ui-dialog-width);
|
||||
max-height: 85vh;
|
||||
overflow: auto;
|
||||
padding: 1.5em;
|
||||
|
|
|
|||
Loading…
Reference in a new issue