spinner
This commit is contained in:
@@ -847,11 +847,17 @@ export function initEditor() {
|
||||
</div>
|
||||
<style>@keyframes spin{to{transform:rotate(360deg)}}</style>
|
||||
`;
|
||||
const host = dlg?.querySelector('.h-full, .flex, .flex-col') || dlg;
|
||||
const host = dlg || document.body;
|
||||
host.style.position = host.style.position || 'relative';
|
||||
(host || document.body).appendChild(veilEl);
|
||||
return veilEl;
|
||||
}
|
||||
function showVeil(){ ensureVeil().style.display = 'flex'; }
|
||||
function showVeil(){
|
||||
const el = ensureVeil();
|
||||
el.style.position = 'fixed';
|
||||
el.style.inset = '0';
|
||||
el.style.display = 'flex';
|
||||
}
|
||||
function hideVeil(){ if (veilEl) veilEl.style.display = 'none'; }
|
||||
|
||||
async function buildRefLibForContext() {
|
||||
@@ -924,7 +930,6 @@ export function initEditor() {
|
||||
}
|
||||
|
||||
try { hideReadyBadge(doc); } catch {}
|
||||
if (token === reqToken) hideVeil();
|
||||
}
|
||||
|
||||
// ---------- Öffnen ----------
|
||||
|
||||
Reference in New Issue
Block a user