feat: Zutaten im Listendialog dem BLS zuordnen
Deploy Development / deploy (push) Successful in 59s
Build Test / pytest-backend (push) Successful in 4s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 23s

Mapping-Status pro Zutat, Suche zuerst Listen und eigene Foods.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-09-13 14:38:42 +02:00
1 parent b37005be01
commit a5adff6196
10 files changed
+237 -23

No files matched your search

+2 -2
View File
@@ -25,7 +25,7 @@ function detectUnit(...texts) {
return null
}
export default function FoodSearchModal({ title, initialQuery, quantityHint, allowRecipe, onSelect, onWantRecipe, onClose }) {
export default function FoodSearchModal({ title, initialQuery, quantityHint, allowRecipe, onSelect, onWantRecipe, onClose, zIndex }) {
const [q, setQ] = useState(initialQuery || '')
const [hits, setHits] = useState([])
const [loading, setLoading] = useState(false)
@@ -130,7 +130,7 @@ export default function FoodSearchModal({ title, initialQuery, quantityHint, all
<div
style={{
position: 'fixed', inset: 0, background: 'rgba(0,0,0,0.45)',
display: 'flex', alignItems: 'center', justifyContent: 'center', zIndex: 20000,
display: 'flex', alignItems: 'center', justifyContent: 'center', zIndex: zIndex || 20000,
padding: 16,
}}
onClick={onClose}