Fixex #1700 - dashboard chart labels cut off

This commit is contained in:
Andy Miller
2019-06-17 22:10:58 -06:00
parent 5201e142d4
commit 6e462efc5e
3 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
# v1.9.7
## mm/dd/2019
1. [](#bugfix)
* Fixed issue with charts in dashboard where label would cut off [#1700](https://github.com/getgrav/grav-plugin-admin/issues/1700)
# v1.9.6
## 06/15/2019

View File

@@ -4,7 +4,7 @@ import { translations } from 'grav-config';
import { Instance as gpm } from '../utils/gpm';
import { Instance as updates } from '../updates';
let isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
// let isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
export const defaults = {
data: {
@@ -23,7 +23,7 @@ export const defaults = {
},
Bar: {
height: 164,
chartPadding: !isFirefox ? 5 : 10, // workaround for older versions of firefox
chartPadding: 20, // workaround for older versions of firefox
axisX: {
showGrid: false,
@@ -40,7 +40,7 @@ export const defaults = {
x: 5,
y: 5
},
scaleMinSpace: !isFirefox ? 20 : 10
scaleMinSpace: 25
}
}
}

File diff suppressed because one or more lines are too long