spinner
This commit is contained in:
@@ -1 +1 @@
|
||||
1.2.93
|
||||
1.2.95
|
||||
|
||||
@@ -834,9 +834,11 @@ export function initEditor() {
|
||||
function ensureVeil() {
|
||||
if (veilEl) return veilEl;
|
||||
veilEl = document.createElement('div');
|
||||
veilEl.id = 'bridge-editor-veil';
|
||||
Object.assign(veilEl.style, {
|
||||
position:'absolute', inset:'0', background:'rgba(248,250,252,.85)',
|
||||
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'
|
||||
});
|
||||
@@ -847,18 +849,22 @@ export function initEditor() {
|
||||
</div>
|
||||
<style>@keyframes spin{to{transform:rotate(360deg)}}</style>
|
||||
`;
|
||||
const host = dlg || document.body;
|
||||
host.style.position = host.style.position || 'relative';
|
||||
(host || document.body).appendChild(veilEl);
|
||||
(document.body || document.documentElement).appendChild(veilEl);
|
||||
return veilEl;
|
||||
}
|
||||
function showVeil(){
|
||||
const el = ensureVeil();
|
||||
el.style.position = 'fixed';
|
||||
el.style.inset = '0';
|
||||
el.style.display = 'flex';
|
||||
el.style.opacity = '1';
|
||||
el.style.visibility = 'visible';
|
||||
}
|
||||
function hideVeil(){
|
||||
if (veilEl) {
|
||||
veilEl.style.display = 'none';
|
||||
veilEl.style.opacity = '0';
|
||||
veilEl.style.visibility = 'hidden';
|
||||
}
|
||||
}
|
||||
function hideVeil(){ if (veilEl) veilEl.style.display = 'none'; }
|
||||
|
||||
async function buildRefLibForContext() {
|
||||
return { sections: [], blocks: [] };
|
||||
|
||||
Reference in New Issue
Block a user