fix clear all button on menu page
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user