From 758864494c41b8a733b28d7fdab719fc9ecc91cf Mon Sep 17 00:00:00 2001 From: Foohoo Date: Sun, 10 Aug 2025 14:42:36 +0100 Subject: [PATCH] fix clear all button on menu page --- frontend/src/components/ShoppingList.css | 11 +++++++++++ frontend/src/components/ShoppingList.tsx | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/ShoppingList.css b/frontend/src/components/ShoppingList.css index b5fa64c..6294d54 100644 --- a/frontend/src/components/ShoppingList.css +++ b/frontend/src/components/ShoppingList.css @@ -86,6 +86,12 @@ cursor: not-allowed; } +.clear-all-btn { + flex-shrink: 0; + max-width: 120px; + white-space: nowrap; +} + .shopping-list-content { display: grid; grid-template-columns: 1fr 1fr; @@ -328,6 +334,11 @@ gap: 16px; } + .clear-all-btn { + max-width: none; + width: 100%; + } + .selected-recipe-item { flex-direction: column; align-items: stretch; diff --git a/frontend/src/components/ShoppingList.tsx b/frontend/src/components/ShoppingList.tsx index 0e10701..d78c15f 100644 --- a/frontend/src/components/ShoppingList.tsx +++ b/frontend/src/components/ShoppingList.tsx @@ -86,7 +86,7 @@ const ShoppingList: React.FC = ({ userSelection, onSelectionU

{userSelection.selectedRecipes.length} recipes • {getTotalRecipes()} total servings