mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-03-20 19:41:31 +01:00
Reintroduced Firefox workaround for Bars charts
This commit is contained in:
@@ -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,14 +23,13 @@ export const defaults = {
|
||||
},
|
||||
Bar: {
|
||||
height: 164,
|
||||
// chartPadding: !isFirefox ? 5 : 25, // workaround for older versions of firefox
|
||||
chartPadding: 5,
|
||||
chartPadding: !isFirefox ? 5 : 10, // workaround for older versions of firefox
|
||||
|
||||
axisX: {
|
||||
showGrid: false,
|
||||
labelOffset: {
|
||||
x: 0,
|
||||
y: 5
|
||||
y: 0
|
||||
}
|
||||
},
|
||||
axisY: {
|
||||
@@ -41,7 +40,7 @@ export const defaults = {
|
||||
x: 5,
|
||||
y: 5
|
||||
},
|
||||
scaleMinSpace: 20
|
||||
scaleMinSpace: !isFirefox ? 20 : 10
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
18
themes/grav/js/admin.min.js
vendored
18
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