This commit is contained in:
Albert Juhé Lluveras 2019-01-10 10:55:15 +01:00 committed by GitHub
parent d46ce1df7a
commit 279bc142bb
2 changed files with 9 additions and 10 deletions

View File

@ -188,14 +188,13 @@ class DashboardCharts extends Component {
<div className="woocommerce-dashboard__columns">
{ uniqCharts.map( chart => {
return hiddenChartKeys.includes( chart.key ) ? null : (
<div key={ chart.key }>
<ChartBlock
charts={ getChartFromKey( chart.key ) }
endpoint={ chart.endpoint }
path={ path }
query={ query }
/>
</div>
<ChartBlock
charts={ getChartFromKey( chart.key ) }
endpoint={ chart.endpoint }
key={ chart.key }
path={ path }
query={ query }
/>
);
} ) }
</div>

View File

@ -2,11 +2,11 @@
.woocommerce-dashboard__columns {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-columns: calc(50% - #{$gap-large/2}) calc(50% - #{$gap-large/2});
grid-column-gap: $gap-large;
@include breakpoint( '<960px' ) {
grid-template-columns: 1fr;
grid-template-columns: 100%;
}
}