diff --git a/frontend/src/tools/bestellungen.jsx b/frontend/src/tools/bestellungen.jsx index 48d007f..1ed7542 100644 --- a/frontend/src/tools/bestellungen.jsx +++ b/frontend/src/tools/bestellungen.jsx @@ -107,7 +107,7 @@ function BestellungDetail({ id, toast, onBack }) { ? archiv.filter(a => a.name.toLowerCase().includes(pickerSearch.toLowerCase())) : archiv; - if (loading) return
Lädt…
; + if (loading) return
Lädt…
; // Status aus Stück-Zählern ableiten const itemDisplayStatus = (item) => { @@ -231,7 +231,7 @@ function BestellungDetail({ id, toast, onBack }) { {order.items.length===0 && ( -
+
Noch keine Positionen.
)} @@ -310,13 +310,13 @@ function BestellungDetail({ id, toast, onBack }) { }; return (
-
{label.toUpperCase()}
+
{label.toUpperCase()}
+ style={{width:22,height:22,borderRadius:5,background:'rgba(0,0,0,0.3)',border:'none',color:canDec?color:'rgba(255,255,255,0.45)',fontSize:16,cursor:canDec?'pointer':'default',lineHeight:1}}>− {qty} + style={{width:22,height:22,borderRadius:5,background:'rgba(0,0,0,0.3)',border:'none',color:canInc?color:'rgba(255,255,255,0.45)',fontSize:16,cursor:canInc?'pointer':'default',lineHeight:1}}>+
); @@ -342,7 +342,7 @@ function BestellungDetail({ id, toast, onBack }) { ))} {item.custom_price!=null && (
-
FEST
+
FEST
{(item.custom_price*item.stueckzahl).toFixed(2)}€
@@ -361,7 +361,7 @@ function BestellungDetail({ id, toast, onBack }) { {PREISE.map(p=>(
{p.emoji}
-
{p.label}
+
{p.label}
{totals[p.key].toFixed(2)}€
@@ -414,7 +414,7 @@ function BestellungDetail({ id, toast, onBack }) { }}>
{a.name}
-
{a.gramm}g · {a.stunden}h
+
{a.gramm}g · {a.stunden}h
{PREISE.map(p=>( @@ -426,7 +426,7 @@ function BestellungDetail({ id, toast, onBack }) {
))} - {filteredArchiv.length===0 &&
Keine Treffer.
} + {filteredArchiv.length===0 &&
Keine Treffer.
}
@@ -500,7 +500,7 @@ export default function Bestellungen({ toast, mobile }) { setSearch(e.target.value)} placeholder="Name suchen…" style={{...S.inp,paddingLeft:34,fontSize:15}}/> - {search && } + {search && }
{/* Status-Filter */} @@ -522,15 +522,15 @@ export default function Bestellungen({ toast, mobile }) { ))}
-

+

{filtered.length} von {orders.length} Bestellungen

- {loading &&
Lädt…
} + {loading &&
Lädt…
} {!loading && orders.length===0 && (
-
Noch keine Bestellungen.
+
Noch keine Bestellungen.
)} @@ -544,7 +544,7 @@ export default function Bestellungen({ toast, mobile }) {
diff --git a/frontend/src/tools/kalkulator3d.jsx b/frontend/src/tools/kalkulator3d.jsx index 65e64ae..14e1fce 100644 --- a/frontend/src/tools/kalkulator3d.jsx +++ b/frontend/src/tools/kalkulator3d.jsx @@ -57,7 +57,7 @@ function Stepper({ label, value, onChange, step, unit, min = 0, hint }) { />
- {hint &&
{hint}
} + {hint &&
{hint}
}
); } @@ -65,7 +65,7 @@ function Stepper({ label, value, onChange, step, unit, min = 0, hint }) { function SmallInput({ label, value, onChange, step = 0.01 }) { return (
-
{label}
+
{label}
onChange(parseFloat(e.target.value) || 0)} style={{ ...S.inp, padding:'7px 8px', fontSize:13 }} @@ -169,7 +169,7 @@ export default function Kalkulator3D({ toast, editData, onEditDone, mobile }) {
))} @@ -272,7 +272,7 @@ export default function Kalkulator3D({ toast, editData, onEditDone, mobile }) { )} @@ -330,35 +330,35 @@ export function SavedList({ toast, mobile }) { {/* Suche */}
+ color:'rgba(255,255,255,0.6)', fontSize:14, pointerEvents:'none' }}>⌕ setSearch(e.target.value)} placeholder="Name oder Bemerkung suchen…" style={{ ...S.inp, paddingLeft:34, fontSize:15 }} /> {search && ( )}
-

+

{filtered.length} von {items.length} Einträgen{search ? ` für „${search}"` : ''}

- {loading &&
Lädt…
} + {loading &&
Lädt…
} {!loading && items.length === 0 && (
-
Noch keine Berechnungen.
+
Noch keine Berechnungen.
)} {!loading && search && filtered.length === 0 && (
-
Keine Treffer.
+
Keine Treffer.
)} @@ -378,13 +378,13 @@ export function SavedList({ toast, mobile }) { {/* Name + Datum */}
{item.name}
-
+
{new Date(item.created_at).toLocaleDateString('de-DE')}
{/* Infos */} -
+
{item.gramm}g · {item.stunden}h · {item.farben} Farbe{item.farben > 1 ? 'n' : ''}