fix: Refactor mobile sidebar to use click instead of touchstart

This commit is contained in:
spinline
2026-01-31 13:06:16 +03:00
parent e8d025a193
commit 21ff936b3e

View File

@@ -346,10 +346,6 @@ pub fn App() -> impl IntoView {
<div
class="fixed inset-0 bg-black/60 backdrop-blur-sm transition-opacity cursor-default"
on:click=move |_| set_show_mobile_sidebar.set(false)
on:touchstart=move |ev| {
ev.prevent_default();
set_show_mobile_sidebar.set(false);
}
></div>
<aside
class={format!("relative w-80 max-w-[85vw] h-full shadow-2xl p-6 flex flex-col animate-in slide-in-from-left duration-300 border-r {}", sidebar_bg)}