From 30e822d4357e3907530eb79b66a82cd4de47e0a5 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Thu, 29 Jan 2026 03:01:50 +0100 Subject: [PATCH] =?UTF-8?q?Quelques=20am=C3=A9liorations=20visuelles=20sur?= =?UTF-8?q?=20les=20tableaux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/style.css | 11 ++++++++++- src/figures.py | 9 ++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 26fcff3..6886019 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -199,10 +199,11 @@ p.version > a { border-color: #ccc; border-style: solid; border-width: 1px; - border-radius: 2px; + border-radius: 3px; height: 28px; font-family: "Fira Code"; caret-color: #000; + background-color: rgb(250 250 250); text-align: left !important; padding: 1px 2px 0 2px; vertical-align: center; @@ -212,6 +213,14 @@ p.version > a { display: none; } +.dash-table-container + .dash-spreadsheet-container + .dash-spreadsheet-inner + .cell-table + th.dash-filter { + background-color: #ccc; +} + /* Custom Marches Table */ .marches_table table td, .marches_table table th { diff --git a/src/figures.py b/src/figures.py index 7ff0274..1781df7 100644 --- a/src/figures.py +++ b/src/figures.py @@ -261,15 +261,19 @@ class DataTable(dash_table.DataTable): { "if": {"column_id": "objet"}, "minWidth": "350px", - "textAlign": "left", "overflow": "hidden", "lineHeight": "18px", "whiteSpace": "normal", }, + { + "if": {"column_id": "acheteur_id"}, + "minWidth": "160px", + "overflow": "hidden", + "whiteSpace": "normal", + }, { "if": {"column_id": "acheteur_nom"}, "minWidth": "250px", - "textAlign": "left", "overflow": "hidden", "lineHeight": "18px", "whiteSpace": "normal", @@ -277,7 +281,6 @@ class DataTable(dash_table.DataTable): { "if": {"column_id": "titulaire_nom"}, "minWidth": "250px", - "textAlign": "left", "overflow": "hidden", "lineHeight": "18px", "whiteSpace": "normal",