spinner
This commit is contained in:
@@ -1 +1 @@
|
|||||||
1.2.93
|
1.2.95
|
||||||
|
|||||||
@@ -834,9 +834,11 @@ export function initEditor() {
|
|||||||
function ensureVeil() {
|
function ensureVeil() {
|
||||||
if (veilEl) return veilEl;
|
if (veilEl) return veilEl;
|
||||||
veilEl = document.createElement('div');
|
veilEl = document.createElement('div');
|
||||||
|
veilEl.id = 'bridge-editor-veil';
|
||||||
Object.assign(veilEl.style, {
|
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',
|
display:'flex', alignItems:'center', justifyContent:'center',
|
||||||
|
pointerEvents:'auto',
|
||||||
zIndex:'2147483000', fontFamily:'system-ui, -apple-system, Segoe UI, Roboto, Arial',
|
zIndex:'2147483000', fontFamily:'system-ui, -apple-system, Segoe UI, Roboto, Arial',
|
||||||
fontSize:'14px', color:'#0f172a'
|
fontSize:'14px', color:'#0f172a'
|
||||||
});
|
});
|
||||||
@@ -847,18 +849,22 @@ export function initEditor() {
|
|||||||
</div>
|
</div>
|
||||||
<style>@keyframes spin{to{transform:rotate(360deg)}}</style>
|
<style>@keyframes spin{to{transform:rotate(360deg)}}</style>
|
||||||
`;
|
`;
|
||||||
const host = dlg || document.body;
|
(document.body || document.documentElement).appendChild(veilEl);
|
||||||
host.style.position = host.style.position || 'relative';
|
|
||||||
(host || document.body).appendChild(veilEl);
|
|
||||||
return veilEl;
|
return veilEl;
|
||||||
}
|
}
|
||||||
function showVeil(){
|
function showVeil(){
|
||||||
const el = ensureVeil();
|
const el = ensureVeil();
|
||||||
el.style.position = 'fixed';
|
|
||||||
el.style.inset = '0';
|
|
||||||
el.style.display = 'flex';
|
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() {
|
async function buildRefLibForContext() {
|
||||||
return { sections: [], blocks: [] };
|
return { sections: [], blocks: [] };
|
||||||
|
|||||||
Reference in New Issue
Block a user