From 536d37d67c3374824d480e9d619871583a315de7 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Thu, 29 Jan 2026 19:38:56 +0100 Subject: [PATCH] Correction style tableau sources (bords) --- src/figures.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/figures.py b/src/figures.py index 694a833..32c2092 100644 --- a/src/figures.py +++ b/src/figures.py @@ -214,7 +214,8 @@ def get_sources_tables(source_path) -> html.Div: sort_action="native", markdown_options={"html": True}, style_cell={ - "border": "solid 1px rgb(179, 56, 33)", + "border-left": "solid 1px #ccc", + "border-top": "solid 1px #ccc", }, style_header={ "border": "solid 1px rgb(179, 56, 33)", @@ -301,6 +302,18 @@ class DataTable(dash_table.DataTable): "lineHeight": "18px", "whiteSpace": "normal", }, + { + "if": {"column_id": "montant"}, + "textAlign": "right", + }, + { + "if": {"column_id": "dureeMois"}, + "textAlign": "right", + }, + { + "if": {"column_id": "titulaire_distance"}, + "textAlign": "right", + }, ] # Initialisation de la classe parente avec les arguments