From a609db119ab57a69db8a0e026d1b3916b657b9ec Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Mon, 14 Feb 2022 15:54:26 -0500 Subject: [PATCH] Formatting fixes fore recipe rendering --- web/src/components/recipe.rs | 2 +- web/src/components/shopping.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/components/recipe.rs b/web/src/components/recipe.rs index 0b74a86..6705aeb 100644 --- a/web/src/components/recipe.rs +++ b/web/src/components/recipe.rs @@ -31,7 +31,7 @@ fn steps(steps: ReadSignal>) -> View { iterable: Signal::new(step.ingredients).handle(), template: |i| { view! { li { - (i.amt) (i.name) (i.form.as_ref().map(|f| format!("({})", f)).unwrap_or(String::new())) + (i.amt) " " (i.name) " " (i.form.as_ref().map(|f| format!("({})", f)).unwrap_or(String::new())) } }} }) diff --git a/web/src/components/shopping.rs b/web/src/components/shopping.rs index 830dd79..ddbfd5f 100644 --- a/web/src/components/shopping.rs +++ b/web/src/components/shopping.rs @@ -88,6 +88,8 @@ fn shopping_list() -> View { let amt = Signal::new(format!("{}", i.amt.normalize())); view! { tr { + // TODO(jwall): What is the mechanism for deleting ingredients + // from the list? td { input(bind:value=amt.clone(), type="text") } td { (i.name) } }