diff --git a/app/konto/bestellungen/page.tsx b/app/konto/bestellungen/page.tsx index 27fc891..7124a18 100644 --- a/app/konto/bestellungen/page.tsx +++ b/app/konto/bestellungen/page.tsx @@ -44,13 +44,19 @@ export default async function KontoBestellungenPage() { - {/* Always 4 columns, even on the narrowest mobile widths - — every field spans exactly 1 track, so every row - shares the exact same column boundaries regardless of - viewport. Plain flex-wrap here (as this used to be) - sized every field to its own content width, so e.g. + {/* 4 columns as soon as there's room for badge labels + like "In Bearbeitung" to fit (>= 400px) — every field + spans exactly 1 track, so every row shares the exact + same column boundaries regardless of viewport. Below + 400px there just isn't room for 4 tracks without + badges overflowing their column, so it drops to 2 + columns; the 6 fields in DOM order already tile into + exactly Bestellnummer/Datum, Artikel/Status, + Zahlungsstatus/Gesamtbetrag without any reordering. + Plain flex-wrap here (as this used to be) sized every + field to its own content width, so e.g. "Status"/"Zahlungsstatus" started at a different x position from one order card to the next depending on how wide that particular badge's label happened to @@ -61,8 +67,10 @@ export default async function KontoBestellungenPage() { Bestellnummer/Datum deliberately do NOT span 2 tracks — that would push Datum to start at the 3rd column instead of the 2nd. Artikel forces col-start-1 so it - wraps to its own row instead of Grid auto-flowing it - into the 2 empty cells left in row 1. */} + wraps to its own row in the 4-column layout instead + of Grid auto-flowing it into the 2 empty cells left + in row 1 (harmless no-op in the 2-column layout, + where it's already first in row 2 anyway). */}
Bestellnummer
{order.orderNumber}
diff --git a/app/konto/components/OrderStatusBadge.tsx b/app/konto/components/OrderStatusBadge.tsx index a77a55a..bc5bad2 100644 --- a/app/konto/components/OrderStatusBadge.tsx +++ b/app/konto/components/OrderStatusBadge.tsx @@ -20,7 +20,7 @@ const STYLES: Record