fix: restore essential UI components and resolve compilation errors after aggressive cleanup
Some checks failed
Build MIPS Binary / build (push) Failing after 44s

This commit is contained in:
spinline
2026-02-12 23:50:07 +03:00
parent d8ce07001f
commit 3d1d461956
4 changed files with 59 additions and 80 deletions

View File

@@ -2,7 +2,6 @@ use leptos::prelude::*;
use tailwind_fuse::tw_merge;
#[derive(Clone, Copy, PartialEq, Eq, Default, Debug)]
#[allow(dead_code)]
pub enum SeparatorOrientation { #[default] Horizontal, Vertical }
#[component]
@@ -10,13 +9,13 @@ pub fn Separator(
#[prop(into, optional)] orientation: Signal<SeparatorOrientation>,
#[prop(into, optional)] class: String,
) -> impl IntoView {
let class = tw_merge!(
let class_signal = move || tw_merge!(
"shrink-0 bg-border",
move || match orientation.get() {
match orientation.get() {
SeparatorOrientation::Horizontal => "h-[1px] w-full",
SeparatorOrientation::Vertical => "h-full w-[1px]",
},
class
class.clone()
);
view! { <div class=class role="none" /> }
view! { <div class=class_signal role="none" /> }
}