From 6a197ea0ba844932e50ebd6068b9e1c6d412dea8 Mon Sep 17 00:00:00 2001 From: salman Date: Sat, 29 Aug 2026 16:24:14 +0200 Subject: [PATCH] Show transient share confirmation --- ZGUI.css | 23 ++++++++++ index.html | 3 +- muSRFitelec.js | 16 +++++-- muSRFitlib.js | 44 +++++++++++++++++++ muSRFitweb.js | 7 +++ tests/shared-configuration.test.js | 70 ++++++++++++++++++++++++++++++ 6 files changed, 159 insertions(+), 4 deletions(-) diff --git a/ZGUI.css b/ZGUI.css index 7ea61e4..4f62764 100644 --- a/ZGUI.css +++ b/ZGUI.css @@ -151,6 +151,29 @@ button:not(.tablinks):not(.action-btn):not(.editor-source-tab):not(.status-state color: var(--mu-green-dark); } +/* Short action confirmations follow the TRIMSP-NL pattern: visible beside the + initiating control, non-blocking, and automatically dismissed. */ +.transient-warning { + background: #fff1c9; + border: 1px solid #c79824; + border-radius: 7px; + box-shadow: 0 7px 20px rgba(31, 39, 33, 0.17); + box-sizing: border-box; + color: #523c08; + line-height: 1.35; + max-width: min(380px, calc(100vw - 24px)); + opacity: 0; + padding: 9px 12px; + pointer-events: none; + position: fixed; + transition: opacity 0.2s ease; + z-index: 2000; +} + +.transient-warning.visible { + opacity: 1; +} + /* Persistent workflow actions. These controls apply across tabs, so they sit outside the Runs form and stay visible while the user edits parameters, constraints, or the MSR text. */ diff --git a/index.html b/index.html index bfebff9..bb10a8d 100644 --- a/index.html +++ b/index.html @@ -37,7 +37,8 @@ -