diff --git a/src/frontend/app.rs b/src/frontend/app.rs index fbd6e82..c0ed2f7 100644 --- a/src/frontend/app.rs +++ b/src/frontend/app.rs @@ -91,7 +91,7 @@ pub fn App() -> impl IntoView { provide_context(create_rw_signal(global_state)); view! { - + <> diff --git a/src/frontend/components/editor.rs b/src/frontend/components/editor.rs index 7d468a2..34ca32a 100644 --- a/src/frontend/components/editor.rs +++ b/src/frontend/components/editor.rs @@ -13,30 +13,35 @@ pub fn EditorView( let (show_preview, set_show_preview) = create_signal(false); view! { - - - -
-
-
- - Markdown - - " formatting is supported" +
+ + + +
+
+
+ + Markdown + + " formatting is supported" +
} } diff --git a/src/frontend/pages/article/create.rs b/src/frontend/pages/article/create.rs index 9c409e3..d0a650c 100644 --- a/src/frontend/pages/article/create.rs +++ b/src/frontend/pages/article/create.rs @@ -50,13 +50,14 @@ pub fn CreateArticle() -> impl IntoView { }); view! { -

Create new Article

+

Create new Article

impl IntoView { }) }} - +
+ - + +
} } diff --git a/src/frontend/pages/article/edit.rs b/src/frontend/pages/article/edit.rs index ad8e636..2e62872 100644 --- a/src/frontend/pages/article/edit.rs +++ b/src/frontend/pages/article/edit.rs @@ -136,13 +136,11 @@ pub fn EditArticle() -> impl IntoView { .map(|err| { view! {

{err}

} }) - }} - - -
+ }} +
impl IntoView { edit.edit.hash.0, ); view! { -
  • - {render_date_time(edit.edit.created)}": " - - {edit.edit.summary} - " by " {user_link(&edit.creator)} +
  • +
    + + {edit.edit.summary} + +

    + {render_date_time(edit.edit.created)}" by " + {user_link(&edit.creator)} +

    +
  • } }) diff --git a/src/frontend/pages/diff.rs b/src/frontend/pages/diff.rs index 7b7769c..a33d0f2 100644 --- a/src/frontend/pages/diff.rs +++ b/src/frontend/pages/diff.rs @@ -33,11 +33,12 @@ pub fn EditDiff() -> impl IntoView { render_date_time(edit.edit.created), ); view! { -
    -

    {article.article.title.replace('_', " ")}

    -

    {label}

    -

    "by " {user_link(&edit.creator)}

    -
    {edit.edit.diff.clone()}
    +

    {label}

    +

    "by " {user_link(&edit.creator)}

    +
    +
    +                                    {edit.edit.diff.clone()}
    +                                
    } })