diff --git a/dyesub-tool/src/main.rs b/dyesub-tool/src/main.rs index 54a9c5d..fe7e7f1 100644 --- a/dyesub-tool/src/main.rs +++ b/dyesub-tool/src/main.rs @@ -3,12 +3,12 @@ mod render; pub mod svg; +use class_list::class_list; use derive_more::From; use leptos::{ev::SubmitEvent, html::Input, *}; use strum_macros::IntoStaticStr; use wasm_bindgen::{JsCast, JsValue}; use web_sys::File; -use class_list::class_list; #[derive(Clone)] struct ResultMessageData { @@ -40,16 +40,18 @@ fn ResultMessage(cx: Scope, message: ReadSignal>) -> i message.track(); set_open(true); }); - move || view! { cx, - - {move || message().map(|ResultMessageData { title, message, colorway }| view! { cx, -
>::into(colorway)] style="position: relative"> - {title} - -

{message}

-
- })} -
+ move || { + view! { cx, + + {move || message().map(|ResultMessageData { title, message, colorway }| view! { cx, +
>::into(colorway)] style="position: relative"> + {title} + +

{message}

+
+ })} +
+ } } } @@ -130,7 +132,7 @@ fn KeyboardFromFile( colorway: Colorway::Bad, })); file_input().unwrap().set_value(""); - }, + } } }); };