From 997b38d3336f23456be635d3be86ae7c43a756f7 Mon Sep 17 00:00:00 2001 From: kitos Date: Fri, 10 Jul 2026 14:08:29 +0200 Subject: [PATCH] fix(ui): fit all 9 test-state stat cards in a single row on Tests page Shrinks padding, icon size, and font sizes, and bumps the grid to 9 columns at the lg breakpoint so Draft through Disputed no longer wrap to a second row. --- frontend/src/pages/TestsPage.tsx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/frontend/src/pages/TestsPage.tsx b/frontend/src/pages/TestsPage.tsx index 78cdbb3..4d0dfea 100644 --- a/frontend/src/pages/TestsPage.tsx +++ b/frontend/src/pages/TestsPage.tsx @@ -442,18 +442,18 @@ export default function TestsPage() { {/* ── State Counter Cards ───────────────────────────────────────── */} -
+
{ALL_STATES.map((state) => { const icons: Record = { - draft: , - red_executing: , - red_review: , - blue_evaluating: , - blue_review: , - in_review: , - validated: , - rejected: , - disputed: , + draft: , + red_executing: , + red_review: , + blue_evaluating: , + blue_review: , + in_review: , + validated: , + rejected: , + disputed: , }; const colorMap: Record = { draft: "text-gray-400", @@ -477,19 +477,19 @@ export default function TestsPage() { setShowMyTasks(false); setStateFilter(stateFilter === state ? "" : state); }} - className={`rounded-xl border p-4 text-left transition-colors ${ + className={`rounded-xl border p-2.5 text-left transition-colors ${ stateFilter === state ? "border-cyan-500/50 bg-cyan-500/10" : "border-gray-800 bg-gray-900 hover:border-gray-700" }`} > -
+
{icons[state]} - + {testStateLabels[state]}
-

+

{globalCounts[state]}