From e8a3e86272f3da820a23c53da13da93ddbb37475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 10 Aug 2025 16:11:41 +0200 Subject: fix(mosaic): wrong display for lines with video --- src/component/MosaicBackground.astro | 1 + src/component/VideoAuto.astro | 21 ++++++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/component/MosaicBackground.astro b/src/component/MosaicBackground.astro index 4d110d2..c39a802 100644 --- a/src/component/MosaicBackground.astro +++ b/src/component/MosaicBackground.astro @@ -44,6 +44,7 @@ const { height = "400" } = Astro.props; } } e.replaceChildren(...newChildren); + e.dispatchEvent(new Event("updatevideo")); }); }); diff --git a/src/component/VideoAuto.astro b/src/component/VideoAuto.astro index 8746b68..bcf23a3 100644 --- a/src/component/VideoAuto.astro +++ b/src/component/VideoAuto.astro @@ -5,9 +5,13 @@ const { src, thumb } = Astro.props; Video thumbnail -- cgit v1.2.3