From 7118b661046b5d4fdbc046a9f2c8c34e659c944e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Juul=20Brunsh=C3=B8j?= Date: Wed, 26 Feb 2025 15:39:34 +0100 Subject: [PATCH] feat: responsive /wall layout --- crates/ascend/src/components/problem_info.rs | 6 +++--- crates/ascend/src/pages/wall.rs | 12 ++++++------ todo.md | 1 - 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/crates/ascend/src/components/problem_info.rs b/crates/ascend/src/components/problem_info.rs index 4edb45d..e5062d5 100644 --- a/crates/ascend/src/components/problem_info.rs +++ b/crates/ascend/src/components/problem_info.rs @@ -11,7 +11,7 @@ pub fn ProblemInfo(problem: models::Problem) -> impl IntoView { let method = problem.method; view! { -
+
@@ -23,7 +23,7 @@ pub fn ProblemInfo(problem: models::Problem) -> impl IntoView { #[tracing::instrument(skip_all)] fn NameValue(#[prop(into)] name: String, #[prop(into)] value: String) -> impl IntoView { view! { -

{name}

-

{value}

+

{name}

+

{value}

} } diff --git a/crates/ascend/src/pages/wall.rs b/crates/ascend/src/pages/wall.rs index 91876b4..5cc0fa8 100644 --- a/crates/ascend/src/pages/wall.rs +++ b/crates/ascend/src/pages/wall.rs @@ -1,5 +1,3 @@ -// TODO: Put current problem UID in url - use crate::codec::ron::RonEncoded; use crate::components::ProblemInfo; use crate::components::button::Button; @@ -109,8 +107,10 @@ pub fn Wall() -> impl IntoView { tracing::info!("executing Suspend future"); let wall = wall.await?; let v = view! { -
- +
+
+ +