Skip to content

Commit

Permalink
Fix inventory amount change styling
Browse files Browse the repository at this point in the history
  • Loading branch information
T3C42 committed Jul 10, 2024
1 parent 8275d05 commit ad07ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/frontend/inventories_tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ impl IngredientTableFormattable for IngredientWithWeight {
div class=(format!("w-full {}",form_id)) name=(INGREDIENT_NAME) { (self.name) }
}
td {
input class=(format!("text {}",form_id)) name="ingredient_amount" value=(self.amount) required="required" hx-put="inventories/change-ingredient-amount" hx-target=(format!("#ingredient-{}", self.ingredient_id)) hx-include=(format!(".{}", form_id)) hx-trigger="keyup[keyCode==13]";
input class=(format!("text {}",form_id)) name="ingredient_amount" value=(self.amount) required="required" hx-put="inventories/change-ingredient-amount" hx-target=(format!("#ingredient-{}", self.ingredient_id)) hx-include=(format!(".{}", form_id)) hx-trigger="keyup[keyCode==13]" hx-swap="outerHTML";
}
td { button hx-include=(format!(".{}", form_id)) class="btn btn-cancel" hx-put="inventories/delete-ingredient" type="submit" hx-target=(format!("#{}", INVENTORY_CONTENTS_DIV)) hx-swap="innerHTML" { "X" } }
}
Expand Down

0 comments on commit ad07ba3

Please sign in to comment.