Skip to content

A platform for community discussion. Free, open, simple.

UX: Improve Site Traffic Explorer mobile layout (#42609)

Alan Guo Xiang Tan3ce44dd203f7
diff --git a/app/assets/stylesheets/admin/dashboard/site-traffic-explorer.scss b/app/assets/stylesheets/admin/dashboard/site-traffic-explorer.scss
index d93972f083a..de2b115ae1c 100644
--- a/app/assets/stylesheets/admin/dashboard/site-traffic-explorer.scss
+++ b/app/assets/stylesheets/admin/dashboard/site-traffic-explorer.scss
@@ -79,10 +79,6 @@
}
@include viewport.until(sm) {
- .db-skeleton__metric-row {
- grid-template-columns: minmax(0, 1fr);
- }
-
.db-skeleton__chart {
height: 18rem;
}
@@ -121,12 +117,6 @@
width: 100%;
}
}
-
- @include viewport.until(sm) {
- .db-section__metrics {
- grid-template-columns: minmax(0, 1fr);
- }
- }
}
&__metric {
@@ -358,6 +348,12 @@
}
.site-traffic-breakdown-modal {
+ @include viewport.until(md) {
+ .d-table {
+ table-layout: fixed;
+ }
+ }
+
&__dimension {
max-width: 0;
overflow: hidden;