From 6f9f1aaf29060d885b6b11b1481bfb280ae014b1 Mon Sep 17 00:00:00 2001 From: rupansh Date: Tue, 27 Feb 2024 15:31:38 +0530 Subject: [PATCH] fix(post_view): fix mute/unmute for ios safari --- src/page/post_view/mod.rs | 4 ++-- src/page/post_view/video_loader.rs | 37 +++++++++++++++++------------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/page/post_view/mod.rs b/src/page/post_view/mod.rs index 2fecf8d8..63e4d0a9 100644 --- a/src/page/post_view/mod.rs +++ b/src/page/post_view/mod.rs @@ -121,7 +121,7 @@ pub fn ScrollingView NVR + Clone + 'static, NVR>( /> -
@@ -129,7 +129,7 @@ pub fn ScrollingView NVR + Clone + 'static, NVR>( class="text-white/80 animate-ping text-4xl" icon=icondata::BiVolumeMuteSolid /> -
+
} diff --git a/src/page/post_view/video_loader.rs b/src/page/post_view/video_loader.rs index 8652f9fd..e204e191 100644 --- a/src/page/post_view/video_loader.rs +++ b/src/page/post_view/video_loader.rs @@ -12,9 +12,7 @@ pub fn BgView(uid: String, children: Children) -> impl IntoView { style:background-color="rgb(0, 0, 0)" style:background-image=move || format!("url({})", bg_url(&uid)) > -
- {children()} -
+ {children()} } } @@ -62,18 +60,25 @@ pub fn VideoView(idx: usize, muted: RwSignal) -> impl IntoView { }); view! { - + } }