Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix tabs alignment for horizontal tabs with grow (#61895)

Denis Berezin772e56a62eb1
diff --git a/frontend/src/metabase/ui/components/navigation/Tabs/Tab.module.css b/frontend/src/metabase/ui/components/navigation/Tabs/Tab.module.css
index de6c8be6136..9df57423072 100644
--- a/frontend/src/metabase/ui/components/navigation/Tabs/Tab.module.css
+++ b/frontend/src/metabase/ui/components/navigation/Tabs/Tab.module.css
@@ -8,6 +8,12 @@
[data-orientation="vertical"] {
padding: 0.6875rem 0.9375rem 0.6875rem 0.5rem;
}
+
+ &[data-orientation="vertical"] {
+ .tabLabel {
+ text-align: left; /* "start" for some reason doesn't work properly */
+ }
+ }
}
.tab {
@@ -42,7 +48,7 @@
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
- text-align: start;
+ text-align: center;
}
.tabSection[data-position="left"] {