From 5ba40299122f8da17ab6c107738c52185c95c845 Mon Sep 17 00:00:00 2001 From: Ruben Carlo Benante Date: Wed, 8 Jul 2026 09:19:07 -0300 Subject: [PATCH] column total on its own full-width line; Total: black (v1.0.4) --- Asset/css/finance.css | 8 ++++++-- Plugin.php | 2 +- Template/board/column_total.php | 15 ++++++++------- VERSION | 2 +- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/Asset/css/finance.css b/Asset/css/finance.css index a25fe43..a47e00e 100644 --- a/Asset/css/finance.css +++ b/Asset/css/finance.css @@ -2,13 +2,17 @@ * FinanceBuddy styles. */ -/* Per-column net total in the column header (its own line, subtle pill). */ +/* Per-column net total: its own full-width line under the column title (clears the right-floated + task count), so a wide amount never overflows the column. Keep the background pill (theme-safe + contrast). "Total:" is black; only the amount span is colored by sign. */ .fb-column-total { - display: inline-block; + display: block; + clear: both; margin-top: 3px; padding: 0 5px; font-weight: bold; font-size: 0.95em; + color: #000; background: rgba(0, 0, 0, 0.05); border-radius: 3px; } diff --git a/Plugin.php b/Plugin.php index 8b92ffe..c384578 100644 --- a/Plugin.php +++ b/Plugin.php @@ -77,7 +77,7 @@ class Plugin extends Base public function getPluginVersion() { - return '1.0.3'; + return '1.0.4'; } public function getPluginHomepage() diff --git a/Template/board/column_total.php b/Template/board/column_total.php index 57abde3..f5692c0 100644 --- a/Template/board/column_total.php +++ b/Template/board/column_total.php @@ -1,7 +1,8 @@ FinanceHelper->isEnabled($column['project_id'])) { return; } @@ -9,16 +10,16 @@ if (empty($column['project_id']) || ! $this->FinanceHelper->isEnabled($column['p $net = $this->FinanceHelper->columnNet($column); if ($net > 0) { - $class = 'fb-column-total fb-total-credit'; + $amount_class = 'fb-total-credit'; $sign = '+'; } elseif ($net < 0) { - $class = 'fb-column-total fb-total-debit'; + $amount_class = 'fb-total-debit'; $sign = '-'; } else { - $class = 'fb-column-total fb-total-zero'; + $amount_class = 'fb-total-zero'; $sign = ''; } ?> -
- : R$ +
+ : R$
diff --git a/VERSION b/VERSION index 71cbcbc..de68dd3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -FinanceBuddy v1.0.3 +FinanceBuddy v1.0.4