From d583a4e5bb3e5d9e6ab9a63d82b5b63e79d0abd1 Mon Sep 17 00:00:00 2001 From: Jakob Wennberg Date: Thu, 13 Aug 2026 15:16:52 +0200 Subject: [PATCH] fix(supplier-invoices): gutter between table columns on the invoice detail (#1578) The Rader and Betalningshistorik tables carried no horizontal cell padding, so a right-aligned column ran flush into the next left-aligned one: the headers read ANTALENHET / A-PRISKONTO / BELOPPVERIFIKATION and the cells read "1st", "8 985 kr5010" and "11 231 krb9da9d7c". Every column after the first now gets a pl-4 gutter, matching the dry-table spacing (TD_CLASS px-4). Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com> Co-authored-by: Claude Fable 5 --- app/(dashboard)/supplier-invoices/[id]/page.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app/(dashboard)/supplier-invoices/[id]/page.tsx b/app/(dashboard)/supplier-invoices/[id]/page.tsx index eb1c1e98..68f15615 100644 --- a/app/(dashboard)/supplier-invoices/[id]/page.tsx +++ b/app/(dashboard)/supplier-invoices/[id]/page.tsx @@ -720,10 +720,13 @@ export default function SupplierInvoiceDetailPage() { {t('rows_title')} - {/* Desktop table */} + {/* Desktop table. The cells carry no horizontal padding of their + own, so every column after the first gets a pl-4 gutter: without + it a right-aligned column runs flush into the next left-aligned + one ("8 985 kr5010", "ANTALENHET"). */}
- + @@ -735,7 +738,7 @@ export default function SupplierInvoiceDetailPage() { - + {items.map((item) => (
{t('col_description')} {t('col_quantity')}{t('col_vat')}
@@ -803,10 +806,11 @@ export default function SupplierInvoiceDetailPage() { {t('payment_history_title')} - {/* Desktop table */} + {/* Desktop table: same non-first-column gutter as the line-item + table above ("11 231 krb9da9d7c" otherwise). */}
- + @@ -814,7 +818,7 @@ export default function SupplierInvoiceDetailPage() { - + {payments.map((p) => (
{t('col_date')} {t('col_amount_short')}{t('col_note')}
{formatDate(p.payment_date)}