From e94401c78d613711cf276fab651b92e6bbf2b88d Mon Sep 17 00:00:00 2001 From: Luiz Filipe Date: Tue, 16 Aug 2022 02:59:01 -0300 Subject: [PATCH] Smaller fonts --- src/components/graph/config.ts | 6 +++--- src/components/graph/grossAnualChart/GrossAnualChart.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/graph/config.ts b/src/components/graph/config.ts index 03a9458..919bfb6 100644 --- a/src/components/graph/config.ts +++ b/src/components/graph/config.ts @@ -11,7 +11,7 @@ const config = (miniature: boolean | undefined): ChartOptions => { }, ticks: { font: { - size: !miniature? window.innerWidth/90 : window.innerWidth/110 + size: !miniature? window.innerWidth/90 : window.innerWidth/130 } }, }, @@ -22,7 +22,7 @@ const config = (miniature: boolean | undefined): ChartOptions => { }, ticks: { font: { - size: !miniature? window.innerWidth/90 : window.innerWidth/110 + size: !miniature? window.innerWidth/90 : window.innerWidth/130 } }, }, @@ -45,7 +45,7 @@ const config = (miniature: boolean | undefined): ChartOptions => { align: "end", font: { weight: 'bold', - size: !miniature? window.innerWidth/80 : window.innerWidth/105 + size: !miniature? window.innerWidth/80 : window.innerWidth/130 } }, legend: { diff --git a/src/components/graph/grossAnualChart/GrossAnualChart.tsx b/src/components/graph/grossAnualChart/GrossAnualChart.tsx index 0960547..9bbaf70 100644 --- a/src/components/graph/grossAnualChart/GrossAnualChart.tsx +++ b/src/components/graph/grossAnualChart/GrossAnualChart.tsx @@ -46,7 +46,7 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba }, ticks: { font: { - size: !miniature? window.innerWidth/90 : window.innerWidth/110 + size: !miniature? window.innerWidth/90 : window.innerWidth/130 } }, }, @@ -57,7 +57,7 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba }, ticks: { font: { - size: !miniature? window.innerWidth/90 : window.innerWidth/110 + size: !miniature? window.innerWidth/90 : window.innerWidth/130 } }, },