From 4ebd4600fc710abf3143414c1db0555985d3abc8 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 11 Nov 2024 10:32:11 +0100 Subject: [PATCH] Format --- src/frontend/pages/instance_details.rs | 56 +++++++++++++------------- src/frontend/pages/search.rs | 12 ++++-- 2 files changed, 37 insertions(+), 31 deletions(-) diff --git a/src/frontend/pages/instance_details.rs b/src/frontend/pages/instance_details.rs index 1cfe582..d5aca8c 100644 --- a/src/frontend/pages/instance_details.rs +++ b/src/frontend/pages/instance_details.rs @@ -46,36 +46,36 @@ pub fn InstanceDetails() -> impl IntoView { let instance_ = instance.clone(); view! {
-
-

- {instance.domain} -

- -
+
+

+ {instance.domain} +

+ +
-
-
{instance.description}
-

Articles

-
} }) diff --git a/src/frontend/pages/search.rs b/src/frontend/pages/search.rs index 0994e85..ac5eb23 100644 --- a/src/frontend/pages/search.rs +++ b/src/frontend/pages/search.rs @@ -52,7 +52,9 @@ pub fn Search() -> impl IntoView { }); view! { -

"Search results for " {query}

+

+ "Search results for " {query} +

@@ -87,7 +89,9 @@ pub fn Search() -> impl IntoView { vec![ view! {
  • - {domain} + + {domain} +
  • }, ] @@ -100,7 +104,9 @@ pub fn Search() -> impl IntoView { .map(|a| { view! {
  • - {article_title(a)} + + {article_title(a)} +
  • } })