@lls-a1/dsh-balance-float 1.1.45 → 1.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.js +11 -1
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -311,7 +311,10 @@ window.__ModuleLoader__.load({
|
|
|
311
311
|
'.dbf-version.has-update{color:var(--dsw-alias-state-error-primary)}',
|
|
312
312
|
'.dbf-version.has-update .dbf-version-glyph{opacity:1}',
|
|
313
313
|
'.dbf-modal{position:fixed;top:0;right:0;bottom:0;left:0;height:100dvh;z-index:10;display:flex;align-items:center;justify-content:center;padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(0,0,0,.45);overscroll-behavior:contain;touch-action:none}',
|
|
314
|
-
'.dbf-dialog{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px));border:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;overflow:
|
|
314
|
+
'.dbf-dialog{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px));border:0;box-sizing:border-box;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;overflow:hidden;overscroll-behavior:contain;outline:none}',
|
|
315
|
+
'.dbf-dialog:focus,.dbf-dialog:focus-visible{outline:none}',
|
|
316
|
+
'.dbf-modal-open{scrollbar-width:none}',
|
|
317
|
+
'.dbf-modal-open ::-webkit-scrollbar{width:0;height:0;display:none}',
|
|
315
318
|
'.dbf-dialog::backdrop{background:rgba(0,0,0,.45)}',
|
|
316
319
|
'.dbf-modal-card{width:min(308px,100%);max-height:100%;overflow:auto;touch-action:auto;overscroll-behavior:contain;padding:16px;border-radius:14px;box-shadow:0 18px 48px rgba(0,0,0,calc(.34 * var(--dbf-shadow,1)));background:var(--dsw-alias-bg-layer-1,Canvas);color:var(--dsw-alias-label-primary,CanvasText)}',
|
|
317
320
|
'.dbf-modal-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}',
|
|
@@ -609,6 +612,13 @@ window.__ModuleLoader__.load({
|
|
|
609
612
|
// page header kept painting above the mask. showModal() moves the element
|
|
610
613
|
// into the browser top layer, where the ::backdrop always covers the
|
|
611
614
|
// whole viewport — no z-index can beat it.
|
|
615
|
+
useEffect(() => {
|
|
616
|
+
if (update === null || !updateOpen) return undefined;
|
|
617
|
+
const root = document.documentElement;
|
|
618
|
+
root.classList.add('dbf-modal-open');
|
|
619
|
+
return () => root.classList.remove('dbf-modal-open');
|
|
620
|
+
}, [update, updateOpen]);
|
|
621
|
+
|
|
612
622
|
useEffect(() => {
|
|
613
623
|
const element = modalRef.current;
|
|
614
624
|
if (element === null || typeof element.showModal !== 'function' || element.open) return;
|