fix: Frontend reactivity and style updates

This commit is contained in:
spinline
2026-01-31 00:12:52 +03:00
parent b91c896865
commit 969f21511a
3 changed files with 25 additions and 2 deletions

View File

@@ -1,5 +1,21 @@
@import "tailwindcss";
@layer base {
html,
body,
button,
a,
[role="button"],
input,
label,
select,
summary,
textarea {
touch-action: manipulation;
}
}
@theme {
--color-gray-900: #111827;
--color-gray-800: #1f2937;

View File

@@ -1308,6 +1308,11 @@
}
}
}
@layer base {
html, body, button, a, [role="button"], input, label, select, summary, textarea {
touch-action: manipulation;
}
}
@property --tw-translate-x {
syntax: "*";
inherits: false;

View File

@@ -327,9 +327,11 @@ pub fn App() -> impl IntoView {
// MOBILE SIDEBAR
<div
class={move || if show_mobile_sidebar.get() { "fixed inset-0 z-50 flex md:hidden" } else { "hidden" }}
on:click=move |_| set_show_mobile_sidebar.set(false)
>
<div class="fixed inset-0 bg-black/60 backdrop-blur-sm transition-opacity"></div>
<div
class="fixed inset-0 bg-black/60 backdrop-blur-sm transition-opacity"
on:click=move |_| 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)}
on:click=move |e: web_sys::MouseEvent| e.stop_propagation()