From d7b06ebfa8e11f0dcf07abe2f60f86471b4aa659 Mon Sep 17 00:00:00 2001 From: banklesss Date: Fri, 13 Dec 2024 12:43:50 +0100 Subject: [PATCH] fix(wallet-mobile): portfolio chart includes padding offset --- .../PortfolioTokenDetails/PortfolioTokenChart/TokenChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenChart/TokenChart.tsx b/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenChart/TokenChart.tsx index bc6288d967..99bda7b12d 100644 --- a/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenChart/TokenChart.tsx +++ b/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenChart/TokenChart.tsx @@ -64,7 +64,7 @@ const TokenChartComponent = ({dataSources = [], onValueSelected}: Props) => { const screenWidth = Dimensions.get('window').width const x0 = 0 // x0 position - const chartWidth = screenWidth - x0 + const chartWidth = screenWidth - x0 - 16 // 16 = padding const xN = x0 + chartWidth // xN position const xDistance = chartWidth / dataSize // The width of each coordinate point