From 93ea9911f8cf05d7979250b935b9c3bfbd2620eb Mon Sep 17 00:00:00 2001 From: BOHA Date: Mon, 23 Mar 2026 19:22:01 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20invoice=20items=20table=20=E2=80=94=20ma?= =?UTF-8?q?tch=20offer=20detail=20card=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed from offers-editor-section + offers-items-table to admin-card + admin-card-body + admin-table-responsive, matching the offer detail page structure. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/admin/pages/InvoiceCreate.tsx | 12 +++++++----- src/admin/pages/InvoiceDetail.tsx | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/admin/pages/InvoiceCreate.tsx b/src/admin/pages/InvoiceCreate.tsx index a64b976..6451886 100644 --- a/src/admin/pages/InvoiceCreate.tsx +++ b/src/admin/pages/InvoiceCreate.tsx @@ -576,18 +576,19 @@ export default function InvoiceCreate() { {/* Items */} - -
+ +
+
-

Položky

+

Položky

{errors.items && {errors.items}}
- +
i._key)} strategy={verticalListSortingStrategy}> -
+
@@ -638,6 +639,7 @@ export default function InvoiceCreate() { {formatCurrency(totals.total, form.currency)} + {/* Notes */} diff --git a/src/admin/pages/InvoiceDetail.tsx b/src/admin/pages/InvoiceDetail.tsx index 0c4f547..553d6bf 100644 --- a/src/admin/pages/InvoiceDetail.tsx +++ b/src/admin/pages/InvoiceDetail.tsx @@ -472,9 +472,10 @@ export default function InvoiceDetail() { {/* Items */} - -
-

Položky

+ +
+
+

Položky

{isDraft && hasPermission('invoices.edit') && ( editingItems ? (
@@ -491,7 +492,7 @@ export default function InvoiceDetail() { {editingItems ? ( i._key)} strategy={verticalListSortingStrategy}> -
+
@@ -525,7 +526,7 @@ export default function InvoiceDetail() { ) : ( <> {invoice.items?.length > 0 ? ( -
+
@@ -579,6 +580,7 @@ export default function InvoiceDetail() { {formatCurrency(totals.total, invoice.currency)} + {/* Notes */}