From 457f66465378456079dc3fc8535c9c2cb29b6ed8 Mon Sep 17 00:00:00 2001 From: Juan Camilo Cifuentes Date: Tue, 11 Jul 2023 09:52:17 -0700 Subject: [PATCH] fix the network dropdown on safari and try to fix the chart resizing --- .../ui/src/screens/home/components/main_info/price_chart.tsx | 3 +-- packages/ui/src/styles/theme/index.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/ui/src/screens/home/components/main_info/price_chart.tsx b/packages/ui/src/screens/home/components/main_info/price_chart.tsx index 4ee748c645..f19b39938b 100644 --- a/packages/ui/src/screens/home/components/main_info/price_chart.tsx +++ b/packages/ui/src/screens/home/components/main_info/price_chart.tsx @@ -123,10 +123,9 @@ const PriceChart: React.FC = () => { const handle = (e: any) => { const container: any = document.getElementById('price-chart'); const dimensions = { - width: container.clientWidth * (container.clientWidth > 767 ? 0.5 : 0.85), + width: container.clientWidth * (container.clientWidth > 767 ? 0.5 : 0.9), height: container.clientHeight, }; - console.log('CALLED', container.clientWidth, container.clientHeight); chartRef.current?.applyOptions(dimensions); }; window.addEventListener('resize', handle); diff --git a/packages/ui/src/styles/theme/index.ts b/packages/ui/src/styles/theme/index.ts index 57a28b5013..3b0a127e02 100644 --- a/packages/ui/src/styles/theme/index.ts +++ b/packages/ui/src/styles/theme/index.ts @@ -22,7 +22,6 @@ export const common = (theme: ThemeOptions) => toolbar: { '@media (min-width: 1025px)': { height: 80, - overflow: 'hidden', }, }, layout: {