diff --git a/web/modules/custom/figli_compta_ledger/css/home.css b/web/modules/custom/figli_compta_ledger/css/home.css index 748b7a2..fa9c73c 100644 --- a/web/modules/custom/figli_compta_ledger/css/home.css +++ b/web/modules/custom/figli_compta_ledger/css/home.css @@ -198,9 +198,16 @@ html.gin--dark-mode #figli-home-app { font-size: 0.75rem; } +/* One column per icon (link, edit) rather than one shared cell -- with a + shared cell, text-align: center puts a lone button (rows with no link + icon) in a different spot than a row with both, so the edit pencil + never lined up from row to row. Separate columns line up by + construction, and get a tight, icon-sized width instead of the + table's default 0.6rem horizontal cell padding. */ #figli-home-app td.actions-col, #figli-home-app th.actions-col { width: 1%; + padding: 0.2rem 0.1rem; text-align: center; white-space: nowrap; } @@ -214,8 +221,8 @@ html.gin--dark-mode #figli-home-app { display: inline-flex; align-items: center; justify-content: center; - width: 1.6rem; - height: 1.6rem; + width: 1.4rem; + height: 1.4rem; padding: 0; background: transparent; border: 1px solid transparent; @@ -225,10 +232,6 @@ html.gin--dark-mode #figli-home-app { vertical-align: middle; } -#figli-home-app .figli-link-btn { - margin-right: 0.15rem; -} - #figli-home-app .figli-edit-btn:hover, #figli-home-app .figli-link-btn:hover { background: var(--figli-bg-alt); diff --git a/web/modules/custom/figli_compta_ledger/js/home.js b/web/modules/custom/figli_compta_ledger/js/home.js index 1de4d55..75f99e7 100644 --- a/web/modules/custom/figli_compta_ledger/js/home.js +++ b/web/modules/custom/figli_compta_ledger/js/home.js @@ -279,6 +279,12 @@ onCellHover(evt) { const cell = evt.target.closest('td, th'); if (!cell) return; + // No crosshair on the technical action columns (link/edit icons) -- + // there's nothing to compare across rows there. + if (cell.classList.contains('actions-col')) { + this.clearColHover(); + return; + } // Logical column position, not DOM sibling index: the totals row's // first cell has colspan="4", which shifts every cell.cellIndex // after it out of alignment with the body rows. 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 f6cdbec..f42360c 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 @@ -66,6 +66,7 @@
| Date | Client | @@ -80,7 +81,7 @@|||||
|---|---|---|---|---|---|---|
| {{ item.label }} ({{ item.count }} lignes) | +{{ item.label }} ({{ item.count }} lignes) | |||||
|
@@ -97,6 +98,8 @@
|
+ ||||||
| Solde (créditeur / débiteur) — {{ filteredRows.length }} lignes filtrées | {{ formatEur(footerTotals.montant_ht) }} | |||||