mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-07-19 23:41:12 +02:00
Fixex #1700 - dashboard chart labels cut off
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
10
themes/grav/js/admin.min.js
vendored
10
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user