remove animation for mobile
This commit is contained in:
parent
c103b61dce
commit
43a694cf44
@ -66,6 +66,7 @@ function getPlotOptions() {
|
|||||||
|
|
||||||
const option = {
|
const option = {
|
||||||
silent: true,
|
silent: true,
|
||||||
|
animation: $screenWidth < 640 ? false: true,
|
||||||
grid: {
|
grid: {
|
||||||
left: $screenWidth < 640 ? '0%' : '2%',
|
left: $screenWidth < 640 ? '0%' : '2%',
|
||||||
right: $screenWidth < 640 ? '5%' : '2%',
|
right: $screenWidth < 640 ? '5%' : '2%',
|
||||||
|
|||||||
@ -55,6 +55,7 @@ function getPlotOptions() {
|
|||||||
|
|
||||||
const option = {
|
const option = {
|
||||||
silent: true,
|
silent: true,
|
||||||
|
animation: $screenWidth < 640 ? false: true,
|
||||||
grid: {
|
grid: {
|
||||||
left: $screenWidth < 640 ? '0%' : '2%',
|
left: $screenWidth < 640 ? '0%' : '2%',
|
||||||
right: $screenWidth < 640 ? '5%' : '2%',
|
right: $screenWidth < 640 ? '5%' : '2%',
|
||||||
|
|||||||
@ -45,6 +45,7 @@ const plotPieChart = () => {
|
|||||||
|
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
|
animation: $screenWidth < 640 ? false: true,
|
||||||
grid: {
|
grid: {
|
||||||
left: '0%',
|
left: '0%',
|
||||||
right: '0%',
|
right: '0%',
|
||||||
|
|||||||
@ -59,6 +59,7 @@ function getPlotOptions() {
|
|||||||
|
|
||||||
const option = {
|
const option = {
|
||||||
silent: true,
|
silent: true,
|
||||||
|
animation: $screenWidth < 640 ? false: true,
|
||||||
grid: {
|
grid: {
|
||||||
left: $screenWidth < 640 ? '0%' : '2%',
|
left: $screenWidth < 640 ? '0%' : '2%',
|
||||||
right: $screenWidth < 640 ? '5%' : '2%',
|
right: $screenWidth < 640 ? '5%' : '2%',
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
export const load = ({ locals, cookies }) => {
|
export const load = ({ locals, cookies }) => {
|
||||||
|
|
||||||
const consent = cookies?.get('cookie-consent')
|
const consent = cookies?.get('cookie-consent')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user