UI-Feinschliff: Button-Ausrichtung in Inline-Reihen + Einheit beim Mindestbestand
- .field-inline: Labels ohne eigenen margin-bottom, sonst rutschen daneben stehende Buttons (z.B. "Nachschlagen") optisch nach unten. Abstand traegt jetzt die Reihe selbst; verschachtelt in Label/Tabellenzelle bleibt er aus. - Produkttabelle: Mindestbestand wird in der Produkteinheit mit nachgestellter Einheit angezeigt (zusaetzlich der Packungswert, falls Packungsgroesse gesetzt). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -98,7 +98,15 @@ export default function Products() {
|
||||
: `${fmt(p.stock / (p.unit_factor || 1))} ${p.unit_name || unitShort(p.base_unit)}`}
|
||||
</td>
|
||||
<td className="num muted">
|
||||
{p.min_stock != null ? `${fmt(p.min_stock / (p.unit_factor || 1))}` : "–"}
|
||||
{p.min_stock != null ? (
|
||||
<>
|
||||
{fmt(p.min_stock / (p.unit_factor || 1))}{" "}
|
||||
{p.unit_name || unitShort(p.base_unit)}
|
||||
{p.package_size ? (
|
||||
<span className="small"> · {fmt(p.min_stock / p.package_size)} Pkg</span>
|
||||
) : null}
|
||||
</>
|
||||
) : "–"}
|
||||
</td>
|
||||
<td className="num"><Link to={`/products/${p.id}`}>Details</Link></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user