From b00cde2a6e45b36b1c8da547ebb92496a959bac6 Mon Sep 17 00:00:00 2001 From: Simon Gruber Date: Tue, 5 May 2026 20:07:08 +0200 Subject: [PATCH] UI adjustments --- .../src/components/views/HomeOrdersTable.tsx | 54 ++++++++++++------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/src/frontend/src/components/views/HomeOrdersTable.tsx b/src/frontend/src/components/views/HomeOrdersTable.tsx index bf643b9..00cd64d 100644 --- a/src/frontend/src/components/views/HomeOrdersTable.tsx +++ b/src/frontend/src/components/views/HomeOrdersTable.tsx @@ -92,36 +92,52 @@ export default function HomeOrdersTable({ const isClosed = !!item.closed; const closedStr = isClosed ? " Closed" : "Open"; - const dateStr = - item.created_at - ? new Date(item.created_at).toLocaleString() - : "Unknown creation time"; + const dateStr = item.created_at + ? new Date(item.created_at).toLocaleString() + : "Unknown creation time"; return ( - + {item.title || item.id} - {item.is_owner ? Owner : null} - {item.is_owner && item.has_unpaid_submissions ? ( - Open payments - ) : null} - {state === "paid" ? Paid : null} - {state === "unpaid" ? ( - Unpaid - ) : null} - {state === "pending" ? Pending : null} + + {item.is_owner ? Owner : null} + {item.is_owner && item.has_unpaid_submissions ? ( + Open payments + ) : null} + {state === "paid" ? Paid : null} + {state === "unpaid" ? ( + Unpaid + ) : null} + {state === "pending" ? ( + Pending + ) : null} + - {{closedStr}}{" • "} - {{dateStr}} + { + + {closedStr} + + } + {" • "} + { + + {dateStr} + + } {item.is_participant && formatted && ( <> {" • "} - - {formatted} - + {formatted} )}