From 07c89de67b3680b38ad8b95e6ce7ecdf40f860af Mon Sep 17 00:00:00 2001 From: Amolith Date: Wed, 18 Mar 2026 20:19:23 -0600 Subject: [PATCH] Align project page stat card order and borders with all projects page Reordered the three stat cards from Open/In progress/Closed to In progress/Open/Closed to match the all projects page layout. Added conditional border coloring using new classes border-success and border-warning, matching the badge color logic where non-zero counts get colored borders while zero counts use the default. --- static/td.css | 8 ++++++++ templates/project.html | 10 +++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/static/td.css b/static/td.css index f73d878abf7e5ebf61e5005af66ee649598b6e81..e688d9cfb35858eae486a589aa951f4bc1e5308e 100644 --- a/static/td.css +++ b/static/td.css @@ -125,3 +125,11 @@ details:has(> .table) > .table { white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,0.15); } + +/* Stat card border colors */ +.card.border-success { + border-color: var(--success); +} +.card.border-warning { + border-color: var(--warning); +} diff --git a/templates/project.html b/templates/project.html index 23b0d4b7c17ff673d1582f8d92bea1203339a6be..0be3a0c147720eff24a6a7e44985eba0fb42950c 100644 --- a/templates/project.html +++ b/templates/project.html @@ -15,14 +15,14 @@

{{ project_name }}

-
-

Open

-

{{ stats_open }}

-
-
+

In progress

{{ stats_in_progress }}

+
+

Open

+

{{ stats_open }}

+

Closed

{{ stats_closed }}