diff --git a/app/konto/bestellungen/page.tsx b/app/konto/bestellungen/page.tsx index 2181e49..1642c40 100644 --- a/app/konto/bestellungen/page.tsx +++ b/app/konto/bestellungen/page.tsx @@ -46,45 +46,49 @@ export default async function KontoBestellungenPage() { href={`/konto/bestellungen/${encodeURIComponent(order.orderNumber)}`} className="grid grid-cols-2 min-[500px]:grid-cols-4 gap-x-3 sm:gap-x-6 gap-y-4 w-full bg-bg-base border border-border rounded-md p-6 hover:border-brand transition-colors" > - {/* Below 500px: 2 columns — the 6 fields in DOM order - (Bestellnummer/Datum, Status/Zahlungsstatus, - Artikel/Gesamtbetrag) already tile into exactly - those 3 pairs, no forcing needed. From 500px up: 4 - columns, with Bestellnummer/Datum on their own row - and Status/Zahlungsstatus/Artikel/Gesamtbetrag - together on the row below — Status forces - min-[500px]:col-start-1 so it wraps to a new row - instead of Grid auto-flowing it into the 2 empty - cells left after Bestellnummer/Datum (a harmless - no-op below 500px, where it's already first in row - 2 anyway). A grid's column tracks are fixed by the - container width, identical on every card regardless - of content — unlike the plain flex-wrap this used - to be, where 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 be. */} -
Bestellnummer
{order.orderNumber}
Datum
{formatDate(order.createdAt)}
Status
Zahlungsstatus
Artikel
{order.itemCount}
Gesamtbetrag
{formatPrice(order.total)}