From 2a9e38fdea913eb54da7138bdddbc49d4a15bc4f Mon Sep 17 00:00:00 2001 From: stephan Date: Thu, 18 Jun 2026 09:41:22 -0400 Subject: [PATCH] Refactor CSS and PHP for badge layout and rendering improvements This commit updates the CSS to enhance the layout of auto badges, positioning them to the right and adjusting the grid structure. In the PHP code, the badge description is modified for clarity, and the rendering logic is streamlined by removing unnecessary elements. These changes improve the user interface by providing a more organized and visually appealing display of sequence information. --- css/style.css | 18 +++++------------- php/inc_fx_promoteur.php | 12 ++++-------- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/css/style.css b/css/style.css index 39927673..8c59e085 100644 --- a/css/style.css +++ b/css/style.css @@ -1813,11 +1813,10 @@ a.ms1-trad-link.btn-aide-trad{ width:100%; } -/* MSIN-4379 — Badge auto par séquence + view/OK/stats ; colonne auto masquée en batch. */ +/* MSIN-4379 — View/OK/Suppr icônes ; stats regroupées ; badge auto à droite. */ .epr-line{ display:grid; grid-template-columns: - minmax(0, max-content) 40px 58px 58px @@ -1842,17 +1841,6 @@ a.ms1-trad-link.btn-aide-trad{ 28px; } -.bib-container.batch-mode .epr-col-auto{ - display:none; -} - -.epr-col-auto{ - display:flex; - align-items:center; - justify-content:flex-start; - min-width:0; -} - .epr-col-stats{ display:grid; grid-template-columns:56px 48px 48px; @@ -1892,6 +1880,10 @@ a.ms1-trad-link.btn-aide-trad{ .epr-col-batch{ overflow:hidden; min-width:0; + display:flex; + align-items:center; + justify-content:flex-end; + gap:4px; } .epr-line .btn-view-range{ diff --git a/php/inc_fx_promoteur.php b/php/inc_fx_promoteur.php index faf3a320..8272aeed 100644 --- a/php/inc_fx_promoteur.php +++ b/php/inc_fx_promoteur.php @@ -3057,7 +3057,7 @@ function fxBibAssignHeaderSummary($intSeqCount, $blnAutoActive = false) { return $html; } -/** Badge « Auto actif » sur une ligne de séquence (epr_bib_auto = 1). */ +/** Badge « Assignation automatique » sur une ligne de séquence (epr_bib_auto = 1). */ function fxBibRenderRangeAutoBadge(array $range, $mode = 'assign') { if ($mode !== 'assign') { return ''; @@ -3070,9 +3070,9 @@ function fxBibRenderRangeAutoBadge(array $range, $mode = 'assign') { } return '' - . fxBibEsc(fxBibTexte('bib_v4_auto_badge', 0)) + . fxBibEsc(fxBibTexte('bib_v4_auto', 0)) . ''; } @@ -3280,7 +3280,6 @@ function renderBibRangeHeader() { ob_start(); ?>
-
@@ -4073,10 +4072,6 @@ $mem_dispo = max(0, $nb_total - $nb_utilises);
-
- -
- 0) { ?>