Use a table to display the recipes

This commit is contained in:
Jeremy Wall 2022-08-24 18:32:43 -04:00
parent 6a916fac3c
commit 496c7f5ea2

View File

@ -42,15 +42,15 @@ pub fn recipe_selector() -> View<G> {
}));
}));
view! {
fieldset(class="recipe_selector no-print") {
table(class="recipe_selector no-print") {
(View::new_fragment(
rows.get().iter().cloned().map(|r| {
view ! {
div(class="grid") {Keyed(KeyedProps{
tr { Keyed(KeyedProps{
iterable: r.handle(),
template: |(i, recipe)| {
view! {
RecipeSelection(RecipeCheckBoxProps{i: i, title: create_memo(move || recipe.get().title.clone())})
td { RecipeSelection(RecipeCheckBoxProps{i: i, title: create_memo(move || recipe.get().title.clone())}) }
}
},
key: |r| r.0.clone(),