cctv: live-video panel card — canvas painted from the active camera's video element, 16:9 wrap, gated against the still-image path

This commit is contained in:
Daniel Slay committed 2026-09-14 20:00:38 +00:00
1 parent e02492cfc2
commit 71aa889133
6 files changed
+64 -1

No files matched your search

+18
View File
@@ -234,6 +234,8 @@
image inside is taller — and the wrap is overflow:hidden, which clipped
the bottom of the frame right back off. Never shrink the preview. */
flex-shrink: 0;
aspect-ratio: 16/9;
min-height: 0;
}
/* Lightweight loading shimmer while the active frame is fetching */
@@ -298,10 +300,26 @@
transition: opacity 180ms ease;
}
#cctv-video {
width: 100%;
height: 100%;
display: block;
object-fit: contain;
}
#cctv-frame.active {
opacity: 1;
}
#cctv-video:not([hidden]) {
opacity: 1;
}
#cctv-frame[hidden],
#cctv-video[hidden] {
display: none;
}
#cctv-meta {
font-family: var(--font-mono);
font-size: 9px;