fix(canvas): center debug status overlay
This commit is contained in:
@@ -81,7 +81,9 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
display: none;
|
display: none;
|
||||||
place-items: start center;
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
flex-direction: column;
|
||||||
padding-top: calc(20px + env(safe-area-inset-top, 0px));
|
padding-top: calc(20px + env(safe-area-inset-top, 0px));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
@@ -171,7 +173,7 @@
|
|||||||
statusEl.style.display = 'none';
|
statusEl.style.display = 'none';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
statusEl.style.display = 'grid';
|
statusEl.style.display = 'flex';
|
||||||
if (titleEl && typeof title === 'string') titleEl.textContent = title;
|
if (titleEl && typeof title === 'string') titleEl.textContent = title;
|
||||||
if (subtitleEl && typeof subtitle === 'string') subtitleEl.textContent = subtitle;
|
if (subtitleEl && typeof subtitle === 'string') subtitleEl.textContent = subtitle;
|
||||||
if (!debugStatusEnabled) {
|
if (!debugStatusEnabled) {
|
||||||
|
|||||||
@@ -83,7 +83,9 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
display: none;
|
display: none;
|
||||||
place-items: start center;
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
flex-direction: column;
|
||||||
padding-top: calc(20px + env(safe-area-inset-top, 0px));
|
padding-top: calc(20px + env(safe-area-inset-top, 0px));
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
@@ -187,7 +189,7 @@
|
|||||||
statusEl.style.display = 'none';
|
statusEl.style.display = 'none';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
statusEl.style.display = 'grid';
|
statusEl.style.display = 'flex';
|
||||||
if (titleEl && typeof title === 'string') titleEl.textContent = title;
|
if (titleEl && typeof title === 'string') titleEl.textContent = title;
|
||||||
if (subtitleEl && typeof subtitle === 'string') subtitleEl.textContent = subtitle;
|
if (subtitleEl && typeof subtitle === 'string') subtitleEl.textContent = subtitle;
|
||||||
if (!debugStatusEnabled) {
|
if (!debugStatusEnabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user