diff --git a/frontend/package.json b/frontend/package.json index 6649520..24efddf 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "homehub-frontend", "private": true, - "version": "0.4.4", + "version": "0.4.5", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/components/BottomSheet.tsx b/frontend/src/components/BottomSheet.tsx index ff227b1..58b2de0 100644 --- a/frontend/src/components/BottomSheet.tsx +++ b/frontend/src/components/BottomSheet.tsx @@ -11,7 +11,7 @@ export default function BottomSheet({ onClose, children }: BottomSheetProps) { style={{ position: 'fixed', inset: 0, background: 'rgba(0,0,0,0.55)', - zIndex: 40, + zIndex: 60, }} />
-
-
-
{children}
diff --git a/frontend/src/pages/ShoppingPage.tsx b/frontend/src/pages/ShoppingPage.tsx index 2c30b01..7f4b778 100644 --- a/frontend/src/pages/ShoppingPage.tsx +++ b/frontend/src/pages/ShoppingPage.tsx @@ -316,6 +316,8 @@ export default function ShoppingPage() { } } + const actionCount = selections.filter(sel => !sel.existingItemId || sel.qty !== sel.originalQty).length + // Tri : non cochés alpha, cochés alpha (en bas) const sortedItems = [...(currentList?.items ?? [])].sort((a, b) => { if (a.is_checked !== b.is_checked) return a.is_checked ? 1 : -1 @@ -569,8 +571,39 @@ export default function ShoppingPage() { {showAddSheet && ( + {/* Actions annuler / valider */} +
+ + +
+ {/* Recherche */} -
+
- {/* Bouton confirm sticky */} - {(() => { - const actionCount = selections.filter(sel => !sel.existingItemId || sel.qty !== sel.originalQty).length - return ( -
- -
- ) - })()} )}