From ce29b7b75d0a8d0cb9b90e6b46ec6fd4019944ac Mon Sep 17 00:00:00 2001 From: traxys Date: Fri, 30 Jun 2023 13:21:37 +0200 Subject: [PATCH] app: Better handle ingredient selection form --- app/src/recipe_creator.rs | 62 +++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/app/src/recipe_creator.rs b/app/src/recipe_creator.rs index 0febd41..4001f5a 100644 --- a/app/src/recipe_creator.rs +++ b/app/src/recipe_creator.rs @@ -118,35 +118,41 @@ pub(super) fn IngredientSelectBase(props: &IngredientSelectBaseProps) -> HtmlRes } -
- - - - { for ig.keys().map(|k| html!{}) } - -
-
- -
- - if let Some(unit) = &*unit { - {unit} - } +
+
+
+ + + + { for ig.keys().map(|k| html!{}) } + +
+
+ +
+ + if let Some(unit) = &*unit { + {unit} + } +
+
+
+ {props.children.clone()} +
- {props.children.clone()}
})