fix clear all button on menu page
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -86,7 +86,7 @@ const ShoppingList: React.FC<ShoppingListProps> = ({ userSelection, onSelectionU
|
||||
<p>{userSelection.selectedRecipes.length} recipes • {getTotalRecipes()} total servings</p>
|
||||
</div>
|
||||
<button
|
||||
className="btn btn-danger"
|
||||
className="btn btn-danger clear-all-btn"
|
||||
onClick={handleClearAll}
|
||||
disabled={loading}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user