Skip to content

Commit

Permalink
Stats: Releasing Devices module. (#90181)
Browse files Browse the repository at this point in the history
* Stats: Releasing Devices module.

* Adjust mobile layout of elements inside the stats-card-header--main

* Wrap chart legends for mobile viewports

---------

Co-authored-by: Dognose <dognose24@gmail.com>
  • Loading branch information
grzegorz-cp and dognose24 authored May 7, 2024
1 parent 626adbe commit 56adf06
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
.pie-chart__legend {
flex-direction: row;
align-items: center;
flex-wrap: wrap;
column-gap: 20px;
row-gap: 12px;
padding: 0 20px;

.legend-item {
flex-direction: row;

&:not(:first-child) {
margin-left: 20px;
margin-top: 0;
}
}
Expand Down Expand Up @@ -76,6 +78,13 @@
}

.stats-module-devices__tabs {
// Align items by resetting the margin set from the segmented-controls mixin.
&.segmented-control {
@media ( max-width: 660px ) {
margin-top: 0;
}
}

.segmented-control__item {
min-width: 80px;

Expand Down
2 changes: 1 addition & 1 deletion config/horizon.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"ssr/prefetch-timebox": true,
"stats/checkout-flows-v2": true,
"stats/date-control": true,
"stats/devices": false,
"stats/devices": true,
"stats/paid-wpcom-stats": true,
"stats/paid-wpcom-v2": true,
"stats/plan-usage": true,
Expand Down
2 changes: 1 addition & 1 deletion config/production.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"ssr/sample-log-cache-misses": true,
"stats/checkout-flows-v2": true,
"stats/date-control": true,
"stats/devices": false,
"stats/devices": true,
"stats/paid-wpcom-stats": true,
"stats/paid-wpcom-v2": true,
"stats/plan-usage": true,
Expand Down
2 changes: 1 addition & 1 deletion config/stage.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"ssr/prefetch-timebox": true,
"stats/checkout-flows-v2": true,
"stats/date-control": true,
"stats/devices": false,
"stats/devices": true,
"stats/paid-wpcom-stats": true,
"stats/paid-wpcom-v2": true,
"stats/plan-usage": true,
Expand Down
2 changes: 1 addition & 1 deletion config/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"ssr/prefetch-timebox": true,
"stats/checkout-flows-v2": true,
"stats/date-control": true,
"stats/devices": false,
"stats/devices": true,
"stats/paid-wpcom-stats": true,
"stats/plan-usage": true,
"stats/tier-upgrade-slider": true,
Expand Down
2 changes: 1 addition & 1 deletion config/wpcalypso.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"ssr/prefetch-timebox": true,
"stats/checkout-flows-v2": true,
"stats/date-control": true,
"stats/devices": false,
"stats/devices": true,
"stats/paid-wpcom-stats": true,
"stats/paid-wpcom-v2": true,
"stats/plan-usage": true,
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/horizontal-bar-list/stats-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
// Add padding to wrapped elements in narrow viewports.
row-gap: 16px;
}

.stats-card-header__additional {
Expand Down

0 comments on commit 56adf06

Please sign in to comment.