From 5bd3abf23a360735595bf30e24131430f5566450 Mon Sep 17 00:00:00 2001 From: Duarte Soares Date: Tue, 16 Jul 2024 14:32:39 +0100 Subject: [PATCH] fix(variables): select column dropdown placement changes --- .../flavours/html/templates/wrapper/assets/style.css | 7 +++++++ src/ydata_profiling/report/structure/report.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/ydata_profiling/report/presentation/flavours/html/templates/wrapper/assets/style.css b/src/ydata_profiling/report/presentation/flavours/html/templates/wrapper/assets/style.css index 7460af210..cde36b692 100644 --- a/src/ydata_profiling/report/presentation/flavours/html/templates/wrapper/assets/style.css +++ b/src/ydata_profiling/report/presentation/flavours/html/templates/wrapper/assets/style.css @@ -303,6 +303,13 @@ select.multiple{ padding: 1em; } +/* specific styles */ + +.dropdown-variables { + float: left; + margin: 24px 0 8px 12px; +} + /* not printing tabs */ @media print { .tab-content > .tab-pane, .collapse { diff --git a/src/ydata_profiling/report/structure/report.py b/src/ydata_profiling/report/structure/report.py index 6a72672c8..24b11e56a 100644 --- a/src/ydata_profiling/report/structure/report.py +++ b/src/ydata_profiling/report/structure/report.py @@ -380,8 +380,8 @@ def get_report_structure(config: Settings, summary: BaseDescription) -> Root: name="Variables", anchor_id="variables-dropdown", id="variables-dropdown", - is_row=True, - classes=["dropdown-toggle"], + is_row=False, + classes=["dropdown-toggle", "dropdown-variables"], items=list(summary.variables), item=Container( render_variables_section(config, summary),