fix: Stop the live media frame collapsing while a stream loads (#2671)

- Closes: #2574
This commit is contained in:
Dermot Duffy
2026-08-09 21:17:06 -07:00
committed by GitHub
parent 45f88a86a4
commit 98a0084e7a
8 changed files with 277 additions and 47 deletions
+3 -4
View File
@@ -4,10 +4,9 @@
position: relative;
}
// Until loaded media or a snapshot sizes the frame (the `sized` attribute),
// nothing gives it a size, so reserve a default ratio to stop it collapsing.
// Real media is never letterboxed into this ratio: the attribute is set the
// moment it sizes the frame.
// Until something sizes the frame (the `sized` attribute), reserve a default
// ratio to stop it collapsing. Media is never letterboxed into this ratio: the
// attribute is set the moment anything else sizes the frame.
:host(:not([sized])) {
aspect-ratio: 16 / 9;
}