diff --git a/src/skrubview/_data/templates/report.html b/src/skrubview/_data/templates/report.html
index 0663c47..c7fc84d 100644
--- a/src/skrubview/_data/templates/report.html
+++ b/src/skrubview/_data/templates/report.html
@@ -1,3 +1,9 @@
+{% set sample_tab_id = "{}-sample-tab".format(report_id) %}
+{% set sample_tab_button_id = "{}-sample-tab-button".format(report_id) %}
+{% set columns_tab_id = "{}-columns-tab".format(report_id) %}
+{% set columns_tab_button_id = "{}-columns-tab-button".format(report_id) %}
+{% set interactions_tab_id = "{}-interactions-tab".format(report_id) %}
+
{% if summary.title %}
@@ -5,33 +11,27 @@
{{ summary.title }}
{% endif %}
- {% include "column-filters.html" %}
-
- {% set sample_tab_id = "{}-sample-tab".format(report_id) %}
- {% set sample_tab_button_id = "{}-sample-tab-button".format(report_id) %}
- {% set columns_tab_id = "{}-columns-tab".format(report_id) %}
- {% set columns_tab_button_id = "{}-columns-tab-button".format(report_id) %}
- {% set interactions_tab_id = "{}-interactions-tab".format(report_id) %}
-
+
{% set interactions_warning = summary["top_associations"][0]["cramer_v"] is gt 0.9 %}
-
-
-
- {% include "dataframe-sample.html" %}
-
-
- {% include "dataframe-columns.html" %}
-
-
- {% include "dataframe-interactions.html" %}
+
+ {% include "column-filters.html" %}
+
+
+ {% include "dataframe-sample.html" %}
+
+
+ {% include "dataframe-columns.html" %}
+
+
+ {% include "dataframe-interactions.html" %}
diff --git a/src/skrubview/_data/templates/tabs.css b/src/skrubview/_data/templates/tabs.css
index db2caec..471e7ce 100644
--- a/src/skrubview/_data/templates/tabs.css
+++ b/src/skrubview/_data/templates/tabs.css
@@ -40,3 +40,9 @@
{{ report_id_selector }}.skrubview-report .skrubview-tabset-buttons button[data-has-warning] {
color: red;
}
+
+{{ report_id_selector }}.skrubview-report .skrubview-flex-reverse {
+ display: flex;
+ justify-content: space-between;
+ flex-wrap: wrap-reverse;
+}