This commit is contained in:
2026-02-10 02:55:45 +01:00
parent 5fb49caf3a
commit 6f9309cce8
2 changed files with 13 additions and 6 deletions

View File

@@ -1 +1 @@
1.2.97
1.2.98

View File

@@ -836,11 +836,11 @@ export function initEditor() {
    veilEl = document.createElement('div');
    veilEl.id = 'bridge-editor-veil';
    Object.assign(veilEl.style, {
      position:'fixed', inset:'0', background:'rgba(248,250,252,.85)',
      display:'flex', alignItems:'center', justifyContent:'center',
      pointerEvents:'auto',
      zIndex:'2147483000', fontFamily:'system-ui, -apple-system, Segoe UI, Roboto, Arial',
      fontSize:'14px', color:'#0f172a'
      fontSize:'14px', color:'#0f172a',
      background:'rgba(248,250,252,.85)',
    });
    veilEl.innerHTML = `
      <div style="display:flex;flex-direction:column;gap:.6rem;align-items:center;">
@@ -849,14 +849,21 @@ export function initEditor() {
      </div>
      <style>@keyframes spin{to{transform:rotate(360deg)}}</style>
    `;
    (document.body || document.documentElement).appendChild(veilEl);
    const host = dlg || document.body || document.documentElement;
    if (host) host.appendChild(veilEl);
    return veilEl;
  }
  function showVeil(){
    const el = ensureVeil();
    if (!el.parentNode) {
      (document.body || document.documentElement).appendChild(el);
    const host = dlg || document.body || document.documentElement;
    if (host && el.parentNode !== host) host.appendChild(el);
    if (host === dlg) {
      host.style.position = host.style.position || 'relative';
      el.style.position = 'absolute';
    } else {
      el.style.position = 'fixed';
    }
    el.style.inset = '0';
    el.style.display = 'flex';
    el.style.opacity = '1';
    el.style.visibility = 'visible';