fix: Frontend reactivity and style updates
This commit is contained in:
@@ -1,5 +1,21 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
|
|
||||||
|
@layer base {
|
||||||
|
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
button,
|
||||||
|
a,
|
||||||
|
[role="button"],
|
||||||
|
input,
|
||||||
|
label,
|
||||||
|
select,
|
||||||
|
summary,
|
||||||
|
textarea {
|
||||||
|
touch-action: manipulation;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
--color-gray-900: #111827;
|
--color-gray-900: #111827;
|
||||||
--color-gray-800: #1f2937;
|
--color-gray-800: #1f2937;
|
||||||
|
|||||||
@@ -1308,6 +1308,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@layer base {
|
||||||
|
html, body, button, a, [role="button"], input, label, select, summary, textarea {
|
||||||
|
touch-action: manipulation;
|
||||||
|
}
|
||||||
|
}
|
||||||
@property --tw-translate-x {
|
@property --tw-translate-x {
|
||||||
syntax: "*";
|
syntax: "*";
|
||||||
inherits: false;
|
inherits: false;
|
||||||
|
|||||||
@@ -327,9 +327,11 @@ pub fn App() -> impl IntoView {
|
|||||||
// MOBILE SIDEBAR
|
// MOBILE SIDEBAR
|
||||||
<div
|
<div
|
||||||
class={move || if show_mobile_sidebar.get() { "fixed inset-0 z-50 flex md:hidden" } else { "hidden" }}
|
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
|
<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)}
|
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()
|
on:click=move |e: web_sys::MouseEvent| e.stop_propagation()
|
||||||
|
|||||||
Reference in New Issue
Block a user