From 09bb8a5fc2df176ee6216f005d95d54421311777 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Wed, 18 Feb 2026 10:13:21 +0100 Subject: [PATCH] fix(ci): ran dx fmt --- src/components/app_shell.rs | 4 +--- src/components/sidebar.rs | 20 ++++---------------- src/pages/overview.rs | 24 ++++-------------------- 3 files changed, 9 insertions(+), 39 deletions(-) diff --git a/src/components/app_shell.rs b/src/components/app_shell.rs index 3763225..12ec446 100644 --- a/src/components/app_shell.rs +++ b/src/components/app_shell.rs @@ -15,9 +15,7 @@ pub fn AppShell() -> Element { email: "user@example.com".to_string(), avatar_url: String::new(), } - main { class: "main-content", - Outlet:: {} - } + main { class: "main-content", Outlet:: {} } } } } diff --git a/src/components/sidebar.rs b/src/components/sidebar.rs index 464bedf..c4fbe8a 100644 --- a/src/components/sidebar.rs +++ b/src/components/sidebar.rs @@ -65,15 +65,9 @@ pub fn Sidebar(email: String, avatar_url: String) -> Element { { // Simple active check: highlight Overview only when on `/`. let is_active = item.route == current_route; - let cls = if is_active { - "sidebar-link active" - } else { - "sidebar-link" - }; + let cls = if is_active { "sidebar-link active" } else { "sidebar-link" }; rsx! { - Link { - to: item.route, - class: cls, + Link { to: item.route, class: cls, {item.icon} span { "{item.label}" } } @@ -134,16 +128,10 @@ fn SidebarFooter() -> Element { rsx! { footer { class: "sidebar-footer", div { class: "sidebar-social", - a { - href: "#", - class: "social-link", - title: "GitHub", + a { href: "#", class: "social-link", title: "GitHub", Icon { icon: BsGithub, width: 16, height: 16 } } - a { - href: "#", - class: "social-link", - title: "Impressum", + a { href: "#", class: "social-link", title: "Impressum", Icon { icon: BsGrid, width: 16, height: 16 } } } diff --git a/src/pages/overview.rs b/src/pages/overview.rs index bda29fa..3f5c1b8 100644 --- a/src/pages/overview.rs +++ b/src/pages/overview.rs @@ -40,11 +40,7 @@ pub fn OverviewPage() -> Element { description: "Guides & API Reference".to_string(), href: "#".to_string(), icon: rsx! { - Icon { - icon: BsBook, - width: 28, - height: 28, - } + Icon { icon: BsBook, width: 28, height: 28 } }, } DashboardCard { @@ -52,11 +48,7 @@ pub fn OverviewPage() -> Element { description: "Observability & Analytics".to_string(), href: "#".to_string(), icon: rsx! { - Icon { - icon: FaChartLine, - width: 28, - height: 28, - } + Icon { icon: FaChartLine, width: 28, height: 28 } }, } DashboardCard { @@ -64,11 +56,7 @@ pub fn OverviewPage() -> Element { description: "Agent Framework".to_string(), href: "#".to_string(), icon: rsx! { - Icon { - icon: FaGears, - width: 28, - height: 28, - } + Icon { icon: FaGears, width: 28, height: 28 } }, } DashboardCard { @@ -76,11 +64,7 @@ pub fn OverviewPage() -> Element { description: "Browse Models".to_string(), href: "#".to_string(), icon: rsx! { - Icon { - icon: FaCubes, - width: 28, - height: 28, - } + Icon { icon: FaCubes, width: 28, height: 28 } }, } }