fix clear all button on menu page

This commit is contained in:
2025-08-10 14:42:36 +01:00
parent 7c0907a109
commit 758864494c
2 changed files with 12 additions and 1 deletions

View File

@@ -86,6 +86,12 @@
cursor: not-allowed; cursor: not-allowed;
} }
.clear-all-btn {
flex-shrink: 0;
max-width: 120px;
white-space: nowrap;
}
.shopping-list-content { .shopping-list-content {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
@@ -328,6 +334,11 @@
gap: 16px; gap: 16px;
} }
.clear-all-btn {
max-width: none;
width: 100%;
}
.selected-recipe-item { .selected-recipe-item {
flex-direction: column; flex-direction: column;
align-items: stretch; align-items: stretch;

View File

@@ -86,7 +86,7 @@ const ShoppingList: React.FC<ShoppingListProps> = ({ userSelection, onSelectionU
<p>{userSelection.selectedRecipes.length} recipes {getTotalRecipes()} total servings</p> <p>{userSelection.selectedRecipes.length} recipes {getTotalRecipes()} total servings</p>
</div> </div>
<button <button
className="btn btn-danger" className="btn btn-danger clear-all-btn"
onClick={handleClearAll} onClick={handleClearAll}
disabled={loading} disabled={loading}
> >