From eda79e75a3172b8d0a10af905223f5a3933789de Mon Sep 17 00:00:00 2001 From: bach Date: Sun, 6 Sep 2026 15:00:29 +0200 Subject: [PATCH] =?UTF-8?q?Simplify=20/lignes=20row=20indicators:=20drop?= =?UTF-8?q?=20redundant=20link=20button=20and=20=C3=A9cart=20outline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove the left-side link button (actions-col) -- the link status badge already does the same thing (view linked entrées, or open the link form when unlinked), so the button was pure duplication. - Remove the red row outline on écart lines -- the Écart column itself (bold red text) already flags it, no need for a second row-level cue. - Hide the link status badge specifically on "Hébergement" lines (both the main table and the drill-down modal) -- reconciliation math is untouched (hébergement sorties still count toward other rows' totals), this only suppresses the badge on hébergement's own row. Co-Authored-By: Claude Sonnet 5 --- .../custom/figli_compta_ledger/css/home.css | 31 +++--------------- .../templates/figli-compta-home.html.twig | 32 +++++-------------- 2 files changed, 13 insertions(+), 50 deletions(-) diff --git a/web/modules/custom/figli_compta_ledger/css/home.css b/web/modules/custom/figli_compta_ledger/css/home.css index 0ea1214..9572f6e 100644 --- a/web/modules/custom/figli_compta_ledger/css/home.css +++ b/web/modules/custom/figli_compta_ledger/css/home.css @@ -267,29 +267,14 @@ html.gin--dark-mode #figli-home-app { font-weight: 700; } -/* Error rows: a thin red outline around the row, not a background fill -- - easier to read, doesn't fight with dark mode. */ -#figli-home-app tr.figli-error-row td { - border-top: 1px solid var(--figli-error); - border-bottom: 1px solid var(--figli-error); -} -#figli-home-app tr.figli-error-row td:first-child { - border-left: 1px solid var(--figli-error); -} -#figli-home-app tr.figli-error-row td:last-child { - border-right: 1px solid var(--figli-error); -} - +/* Écart is called out by the Écart column itself (bold red, see + .figli-ecart below) -- no separate row-level treatment needed. */ #figli-home-app td.figli-ecart { color: var(--figli-error); font-weight: 700; } -/* Signalé rows: a thick amber accent bar on the left edge, deliberately - a different technique from the error row's thin all-around border - above (box-shadow, not border) -- so a row that's both in écart *and* - signalée shows both indicators at once instead of one overwriting the - other's border-left. */ +/* Signalé rows: a thick amber accent bar on the left edge. */ #figli-home-app tr.figli-flag-row td:first-child { box-shadow: inset 4px 0 0 var(--figli-warning); } @@ -403,8 +388,7 @@ html.gin--dark-mode #figli-home-app { table cell breaks the table's own column-width calculation (observed: a ~55px gap opening up between this column and the next, and the buttons rendering outside their cell's actual boundary). */ -#figli-home-app .figli-edit-btn, -#figli-home-app .figli-link-btn { +#figli-home-app .figli-edit-btn { display: inline-flex; align-items: center; justify-content: center; @@ -419,17 +403,12 @@ html.gin--dark-mode #figli-home-app { vertical-align: middle; } -#figli-home-app .figli-edit-btn:hover, -#figli-home-app .figli-link-btn:hover { +#figli-home-app .figli-edit-btn:hover { background: var(--figli-bg-alt); border-color: var(--figli-border); color: var(--figli-text); } -#figli-home-app .figli-link-btn.is-linked { - color: #3b6fe0; -} - /* Reconciliation badge on entrée rows: répartition (money owed) vs the combined répartition of every linked sortie (money actually paid out). */ #figli-home-app .figli-recon-badge { diff --git a/web/modules/custom/figli_compta_ledger/templates/figli-compta-home.html.twig b/web/modules/custom/figli_compta_ledger/templates/figli-compta-home.html.twig index 56ce587..8a9429e 100644 --- a/web/modules/custom/figli_compta_ledger/templates/figli-compta-home.html.twig +++ b/web/modules/custom/figli_compta_ledger/templates/figli-compta-home.html.twig @@ -106,7 +106,6 @@ - @@ -122,30 +121,15 @@ - - @@ -267,7 +251,7 @@ - @@ -303,7 +287,7 @@ - +
Date Client
+ Chargement des mois précédents…
+ Chargement des mois suivants…
+ Solde {{ currentYear || '…' }} (créditeur / débiteur) chargement…