feat: Zutaten im Listendialog dem BLS zuordnen
Mapping-Status pro Zutat, Suche zuerst Listen und eigene Foods. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b37005be01
commit
a5adff6196
10 files changed
+237
-23
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user