From 307e3379e0a59fa7c7845a2cf7c07704e59226f6 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Thu, 29 Jan 2026 18:48:30 +0100 Subject: [PATCH] =?UTF-8?q?Angles=20arrondis=20OK=20et=20tableau=20align?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/style.css | 40 +++++++++++++++++++++++++++++++--------- src/figures.py | 1 - 2 files changed, 31 insertions(+), 10 deletions(-) diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 67715da..9e63636 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -170,10 +170,18 @@ p.version > a { } /* Dash Table Overrides */ +dash-table-container dash-spreadsheet-menu table.cell-table { + margin-right: 8px; + margin-lef: 8px; +} + table.cell-table, table.cell-table tr { border-color: #fff; padding: 0; + border-collapse: separate !important; + /* Required for border-radius */ + border-spacing: 0; } .dash-table-container p { @@ -190,22 +198,36 @@ table.cell-table tr { text-align: left; font-weight: 500; padding-right: 12px; - border-color: rgb(179, 56, 33) !important; + border: 1px solid rgb(179, 56, 33) !important; background-color: rgb(179, 56, 33); - border-style: solid; - border-width: 1px; } -table.cell-table tr:first-of-type th:first-of-type { - border-top-left-radius: 3px; +/* High specificity to override Dash defaults and .dash-header class */ +.dash-table-container + .dash-spreadsheet-container + .dash-spreadsheet-inner + table.cell-table + tr:first-of-type + th.dash-header { + border-bottom: none !important; } -table.cell-table tr:first-of-type th:last-of-type { - border-top-right-radius: 3px; +.dash-table-container + .dash-spreadsheet-container + .dash-spreadsheet-inner + table.cell-table + tr:first-of-type + th.dash-header:first-of-type { + border-top-left-radius: 3px !important; } -.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td { - padding-left: 8px; +.dash-table-container + .dash-spreadsheet-container + .dash-spreadsheet-inner + table.cell-table + tr:first-of-type + th.dash-header:last-of-type { + border-top-right-radius: 3px !important; } /* Dash Filters */ diff --git a/src/figures.py b/src/figures.py index 8a586cd..694a833 100644 --- a/src/figures.py +++ b/src/figures.py @@ -323,7 +323,6 @@ class DataTable(dash_table.DataTable): page_current=0, style_cell_conditional=style_cell_conditional, style_header={ - "border": "solid 1px rgb(179, 56, 33)", "backgroundColor": "rgb(179, 56, 33)", "color": "white", },