fix bad video renders

This commit is contained in:
Brandon Thomas committed 2026-09-11 01:01:40 -04:00
1 parent 18a73a0500
commit cf4c984f33
1 file changed
+4
@@ -584,7 +584,11 @@ export function LightboxModal({
controls
loop={true}
autoPlay={true}
playsInline
className="h-full w-full object-contain"
// Give WebKit a dedicated compositing layer for paused frames,
// independent of the modal's transform/opacity animation.
style={{ transform: "translateZ(0)" }}
onLoadedData={(e) => {
setMediaLoaded(true);
const el = e.currentTarget;