From efe09820e2f5a1f7bbe65bae4876703b916600ed Mon Sep 17 00:00:00 2001 From: itsscb Date: Tue, 3 Sep 2024 11:46:15 +0200 Subject: [PATCH] fix(frontend): fixes css misconfiguration and index on focus --- frontend/index.html | 4 ++-- frontend/src/pages/home.rs | 14 +++----------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 67f8749..abbbbca 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,8 +13,8 @@ - -
+ +
diff --git a/frontend/src/pages/home.rs b/frontend/src/pages/home.rs index 2f1ca72..3c0abc0 100644 --- a/frontend/src/pages/home.rs +++ b/frontend/src/pages/home.rs @@ -362,8 +362,8 @@ pub fn Home() -> Html { "flex", "flex-col", "items-center", + "justify-center", "h-[90vh]", - "pt-12", ) } > @@ -475,7 +475,7 @@ pub fn Home() -> Html { Callback::from(move |e: FocusEvent| { let target = e.target_unchecked_into::(); if let Some(index) = target.get_attribute("tabindex") { - if let Ok(i) = index.parse::() { + if let Ok(i) = index.replace('-', "").parse::() { curr_index.set(i); } } @@ -488,15 +488,7 @@ pub fn Home() -> Html { }; html! {