Skip to content

Commit

Permalink
Use CSS flex and full width for totals in dashboard widget (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode authored Mar 13, 2021
1 parent 0cca5f0 commit 97291f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions css/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

#statify_chart {
color: #a7aaad;
flex: 0 0 100%;
direction: rtl;
height: 140px;
margin: 0 -4px;
overflow-x: auto;
overflow-y: hidden;
text-align: center;
width: 100%;
}

#statify_chart_data {
Expand Down Expand Up @@ -60,6 +60,8 @@
}

#statify_dashboard .inside {
display: flex;
flex-wrap: wrap;
height: 1%;
margin: 0;
padding-bottom: 0;
Expand All @@ -80,20 +82,13 @@
overflow: hidden;
}

#statify_dashboard .table.referrer {
float: left;
width: 45%;
}

#statify_dashboard .table.referrer,
#statify_dashboard .table.target {
float: right;
width: 55%;
flex: 1 0 50%;
}

#statify_dashboard .table.total {
clear: both;
float: left;
width: 45%;
flex: 0 0 100%;
}

#statify_dashboard td {
Expand All @@ -118,6 +113,7 @@
/* @group Back stage */

#statify_dashboard form {
flex: 0 0 100%;
padding: 18px 0;
}

Expand Down
2 changes: 1 addition & 1 deletion views/widget-front.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class_exists( 'Statify' ) || exit;
</div>
<?php } ?>

<form method="post" class="clear">
<form method="post">
<?php wp_nonce_field( 'statify-dashboard-refresh' ); ?>
<button class="button button-primary" name="statify-fresh"><?php esc_html_e( 'Refresh', 'statify' ); ?></button>
</form>

0 comments on commit 97291f9

Please sign in to comment.