File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
client/my-sites/stats/features/modules/stats-locations
packages/components/src/horizontal-bar-list Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ const StatsLocations: React.FC< StatsModuleLocationsProps > = ( {
56
56
query,
57
57
summaryUrl,
58
58
summary = false ,
59
+ listItemClassName,
59
60
} ) => {
60
61
const dispatch = useDispatch ( ) ;
61
62
const translate = useTranslate ( ) ;
@@ -429,6 +430,7 @@ const StatsLocations: React.FC< StatsModuleLocationsProps > = ( {
429
430
}
430
431
onShowMoreClick = { onShowMoreClick }
431
432
overlay = { moduleOverlay }
433
+ listItemClassName = { listItemClassName }
432
434
/>
433
435
</ >
434
436
) }
Original file line number Diff line number Diff line change @@ -90,7 +90,9 @@ $locations-horizontal-bar-width: 380px;
90
90
.stats-card.list-locations ,
91
91
.stats-card-skeleton.locations-skeleton {
92
92
.stats-card--hero .stats-card-header {
93
- padding : 0 24px 12px 0 ;
93
+ & :not (.stats__summary--narrow-mobile ) {
94
+ padding : 0 24px 12px 0 ;
95
+ }
94
96
}
95
97
96
98
.stats-card-header.stats-card-header--split .stats-card-header--main__left {
@@ -109,6 +111,12 @@ $locations-horizontal-bar-width: 380px;
109
111
flex-direction : column ;
110
112
}
111
113
}
114
+
115
+ .stats__summary--narrow-mobile {
116
+ .stats-card--column-header {
117
+ padding : 0 ;
118
+ }
119
+ }
112
120
}
113
121
114
122
.stats__module-list--traffic .stats-card.list-locations ,
@@ -211,6 +219,11 @@ $locations-horizontal-bar-width: 380px;
211
219
flex : 2 ;
212
220
margin : 0 24px ;
213
221
222
+ // Corresponding to .stats-card--hero above.
223
+ .stats-card-header {
224
+ padding : 0 0 12px ;
225
+ }
226
+
214
227
.stats-geochart {
215
228
margin : 0 auto ;
216
229
overflow : hidden ;
Original file line number Diff line number Diff line change @@ -134,7 +134,11 @@ const StatsCard = ( props: StatsCardProps ) => {
134
134
>
135
135
{ ! ! heroElement && (
136
136
< div className = { `${ BASE_CLASS_NAME } --hero` } >
137
- { splitHeader && < div className = { `${ BASE_CLASS_NAME } -header` } > { titleNode } </ div > }
137
+ { splitHeader && (
138
+ < div className = { clsx ( `${ BASE_CLASS_NAME } -header` , headerClassName ) } >
139
+ { titleNode }
140
+ </ div >
141
+ ) }
138
142
{ heroElement }
139
143
</ div >
140
144
) }
You can’t perform that action at this time.
0 commit comments