fix(canvas): center debug status overlay

This commit is contained in:
Peter Steinberger
2025-12-26 20:01:23 +01:00
parent f4d41ef254
commit 51b6a785e6
2 changed files with 8 additions and 4 deletions

View File

@@ -81,7 +81,9 @@
position: fixed;
inset: 0;
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));
pointer-events: none;
z-index: 3;
@@ -171,7 +173,7 @@
statusEl.style.display = 'none';
return;
}
statusEl.style.display = 'grid';
statusEl.style.display = 'flex';
if (titleEl && typeof title === 'string') titleEl.textContent = title;
if (subtitleEl && typeof subtitle === 'string') subtitleEl.textContent = subtitle;
if (!debugStatusEnabled) {

View File

@@ -83,7 +83,9 @@
position: fixed;
inset: 0;
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));
pointer-events: none;
z-index: 3;
@@ -187,7 +189,7 @@
statusEl.style.display = 'none';
return;
}
statusEl.style.display = 'grid';
statusEl.style.display = 'flex';
if (titleEl && typeof title === 'string') titleEl.textContent = title;
if (subtitleEl && typeof subtitle === 'string') subtitleEl.textContent = subtitle;
if (!debugStatusEnabled) {