🎨Add month+date indication to the stats graph to avoid confusion when there are days without visits

This commit is contained in:
Flavio Copes
2017-04-29 17:21:57 +02:00
parent e0cb130bf0
commit 8c94b39bea
5 changed files with 6 additions and 7 deletions

View File

@@ -5,6 +5,7 @@
* Improved full-screen editor for better browser compatibility [#1093](https://github.com/getgrav/grav-plugin-admin/pull/1093)
* Added ability to choose how you want the preview button to open [#1096](https://github.com/getgrav/grav-plugin-admin/pull/1096)
* `base.html.twig` now extends a `base-root.html.twig` file
* Add month+date indication to the stats graph to avoid confusion when there are days without visits
1. [](#bugfix)
* Fixed issue with tab widths on Pages overlapping non-english toggle switch [#1089](https://github.com/getgrav/grav-plugin-admin/issues/1089)
* Added `vendor` to ignores for direct install of Grav

View File

@@ -125,8 +125,8 @@ class Popularity
foreach ($chart_data as $date => $count) {
$labels[] = Grav::instance()['grav']['admin']->translate([
'PLUGIN_ADMIN.' . strtoupper(date('D', strtotime($date)))
]);
'PLUGIN_ADMIN.' . strtoupper(date('D', strtotime($date)))]) .
'<br>' . date('M d', strtotime($date));
$data[] = $count;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1058,11 +1058,9 @@ body.sidebar-quickopen #admin-main {
// Chart overrides
.ct-chart {
.ct-series {
.ct-bar {
stroke-width: 20px;
}
}
}
@@ -1070,7 +1068,7 @@ body.sidebar-quickopen #admin-main {
#popularity .ct-chart {
margin: 0 -10px -10px;
.ct-chart-bar {
padding: 10px;
padding: 6px 6px 6px 10px;
}
}