Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: opening a dialog no longer scrolls the page to the top

This commit is contained in:
iris 2026-11-22 17:14:34 +01:00 • committed by mara
commit ff4e42f1ae

View file

@ -19,7 +19,9 @@
`fit-content` sizing — `max-width` has the same carving-out
requirement `width` did. */
box-sizing: border-box;
position: relative;
/* No `position` here: a modal dialog is `position: fixed` by default, which
also anchors the close button below. Setting `relative` put the dialog in
the page's flow, and focusing it on open scrolled the page to the top. */
width: fit-content;
--ui-dialog-width: min(90vw, 64em);
max-width: var(--ui-dialog-width);