From 0b8673de5241a4b84dd8a7b0c1592c9036dd6111 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Mon, 24 Aug 2026 19:46:59 +0530 Subject: [PATCH] style: right-align created date in fetch-request and report rows - created_at pinned right before row actions in both lists; remaining cells wrap inside a shrinking area so the date never wraps to a left-aligned line --- src/FetchRequest/FetchRequestCreate.tsx | 48 ++++++++++++++++--------- src/Reports/ReportList.tsx | 2 +- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/src/FetchRequest/FetchRequestCreate.tsx b/src/FetchRequest/FetchRequestCreate.tsx index c2aa37c..2a944b6 100644 --- a/src/FetchRequest/FetchRequestCreate.tsx +++ b/src/FetchRequest/FetchRequestCreate.tsx @@ -130,22 +130,38 @@ function FetchRequestList() { })} onClick={() => navigate(`/fetch-requests/${row.id}`)} > - - {columns.map((col) => ( - - - {col.label} - - r.name === col.fk!.resource)?.displayFormat ?? displayFormat) - : displayFormat} - /> - - ))} - + + + {columns + .filter((col) => col.name !== "created_at") + .map((col) => ( + + + {col.label} + + r.name === col.fk!.resource)?.displayFormat ?? displayFormat) + : displayFormat} + /> + + ))} + + {(() => { + const dateCol = columns.find((col) => col.name === "created_at"); + if (!dateCol) return null; + return ( + + + {dateCol.label} + + + + ); + })()} + - + {report.name || report.id}