diff --git a/crates/forge-web/src/pages/admin_runners.rs b/crates/forge-web/src/pages/admin_runners.rs index 44b111a..30b2f2d 100644 --- a/crates/forge-web/src/pages/admin_runners.rs +++ b/crates/forge-web/src/pages/admin_runners.rs @@ -410,7 +410,7 @@ pub(crate) async fn confirm_post(

(message)

- +
diff --git a/style/_one.scss b/style/_one.scss index 15f922a..1889861 100644 --- a/style/_one.scss +++ b/style/_one.scss @@ -1559,6 +1559,7 @@ a.line:hover .name, .corner-menu, .ref-menu, .pop-panel, +.head-title > details.reveal:not(:has(.field)) > .opened, .row-menu-panel, .ci-tl-more > p, .dock-expand > .dock-message, @@ -3584,6 +3585,53 @@ details.log-group { } } +// A confirm opened from a pill beside the title floats under the pill as a panel, so the title's +// row never reflows around it. A form of fields still opens in place, with room for its labels. +.head-title > details.reveal:not(:has(.field)) { + display: block; + position: relative; + + > .opened { + position: absolute; + z-index: 30; + top: calc(100% + 8px); + left: 0; + display: flex; + flex-direction: column; + gap: 10px; + box-sizing: border-box; + width: max-content; + max-width: min(360px, calc(100vw - 32px)); + margin: 0; + padding: 14px 16px; + + > .hint { + margin: 0; + } + + > .acts { + margin-left: 0; + } + } + + // On a phone the pill may sit far right: the panel spans the title's row instead. + @media (max-width: 700px) { + position: static; + + > .opened { + right: 0; + width: auto; + max-width: none; + } + } +} + +@media (max-width: 700px) { + .head-title:has(> details.reveal[open]) { + position: relative; + } +} + // A choice whose options are places (an import's source) reads exactly like one of radios. .choice.choice > a { display: inline-flex;