From 5bc8afb410b216029cd57742ce4486c15c980f42 Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Fri, 8 Dec 2023 11:54:57 +0100 Subject: [PATCH] added sharp (#682) * env: added sharp * fix: use dvh over vh --- package.json | 1 + .../Trade/TradeChart/TVChartContainer.tsx | 2 +- src/components/Trade/TradeChart/index.tsx | 2 +- src/pages/PerpsPage.tsx | 2 +- src/pages/_layout.tsx | 2 +- yarn.lock | 184 +++++++++++++++++- 6 files changed, 188 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e311b9b7..939f582d 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "react-toastify": "^9.1.3", "react-use-clipboard": "^1.0.9", "recharts": "^2.10.1", + "sharp": "^0.33.0", "swr": "^2.2.4", "tailwind-scrollbar-hide": "^1.1.7", "zustand": "^4.4.6" diff --git a/src/components/Trade/TradeChart/TVChartContainer.tsx b/src/components/Trade/TradeChart/TVChartContainer.tsx index f8b69354..4197e7e6 100644 --- a/src/components/Trade/TradeChart/TVChartContainer.tsx +++ b/src/components/Trade/TradeChart/TVChartContainer.tsx @@ -156,7 +156,7 @@ export const TVChartContainer = (props: Props) => { } contentClassName='px-0.5 pb-0.5 h-full' - className='min-h-[55vh] h-full' + className='min-h-[55dvh] h-full' >
diff --git a/src/components/Trade/TradeChart/index.tsx b/src/components/Trade/TradeChart/index.tsx index 237aa691..163969b9 100644 --- a/src/components/Trade/TradeChart/index.tsx +++ b/src/components/Trade/TradeChart/index.tsx @@ -45,7 +45,7 @@ export default function TradeChart(props: Props) {
} contentClassName='px-0.5 pb-0.5 h-full' - className='min-h-[55vh]' + className='min-h-[55dvh]' >
diff --git a/src/pages/PerpsPage.tsx b/src/pages/PerpsPage.tsx index 3a3b8639..96b85367 100644 --- a/src/pages/PerpsPage.tsx +++ b/src/pages/PerpsPage.tsx @@ -7,7 +7,7 @@ export default function PerpsPage() { return (
-
+
diff --git a/src/pages/_layout.tsx b/src/pages/_layout.tsx index 71557dc7..11635077 100644 --- a/src/pages/_layout.tsx +++ b/src/pages/_layout.tsx @@ -62,7 +62,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {