From 729df69e2e000d9a1db3f8c4dd72c5824398a458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 4 Nov 2026 20:55:05 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20a=20confirm=20opened=20?= =?UTF-8?q?from=20a=20pill=20beside=20a=20page's=20title=20(Cancel=20a=20r?= =?UTF-8?q?un,=20Restart=20server,=20Delete=20a=20snippet)=20floats=20unde?= =?UTF-8?q?r=20its=20pill=20as=20a=20panel=20instead=20of=20unfolding=20in?= =?UTF-8?q?side=20the=20title's=20row=20and=20pushing=20the=20other=20pill?= =?UTF-8?q?s=20aside,=20and=20spans=20the=20row=20on=20a=20phone;=20a=20fo?= =?UTF-8?q?rm=20of=20fields=20opened=20there=20still=20opens=20in=20place;?= =?UTF-8?q?=20the=20confirm's=20way=20back=20reads=20Keep=20it,=20so=20a?= =?UTF-8?q?=20run's=20Cancel=20no=20longer=20offers=20a=20second=20Cancel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/forge-web/src/pages/admin_runners.rs | 2 +- style/_one.scss | 48 +++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) 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;