From b4f0fb243594c2da24cea660a515ac129aaef3f6 Mon Sep 17 00:00:00 2001 From: JP Date: Wed, 17 Apr 2024 04:33:06 -0500 Subject: [PATCH] Improve mobile view (#2085) --- .../src/components/Charts/CashflowsChart.tsx | 20 +++-- .../src/components/LayoutBase/index.tsx | 11 ++- .../src/components/Menu/GovernanceMenu.tsx | 13 ++- .../src/components/Menu/PageLink.tsx | 4 +- centrifuge-app/src/components/Menu/index.tsx | 45 ++++++---- centrifuge-app/src/components/Menu/styles.ts | 6 +- .../src/components/PoolCard/index.tsx | 90 ++++++++++--------- .../src/components/PoolFilter/index.tsx | 38 ++++---- centrifuge-app/src/components/PoolList.tsx | 36 +++++--- .../src/components/PoolOverview/Cashflows.tsx | 40 ++++----- .../PoolOverview/TrancheTokenCards.tsx | 22 +++-- .../src/components/PoolsTokensShared.tsx | 11 ++- .../src/components/PortfolioCta/index.tsx | 5 +- centrifuge-app/src/pages/Pool/Header.tsx | 1 + .../src/pages/Pool/Overview/index.tsx | 27 +++--- 15 files changed, 222 insertions(+), 147 deletions(-) diff --git a/centrifuge-app/src/components/Charts/CashflowsChart.tsx b/centrifuge-app/src/components/Charts/CashflowsChart.tsx index 7e6b5c044b..b760a85567 100644 --- a/centrifuge-app/src/components/Charts/CashflowsChart.tsx +++ b/centrifuge-app/src/components/Charts/CashflowsChart.tsx @@ -74,7 +74,7 @@ export const CashflowsChart = ({ poolStates, pool }: Props) => { return ( - + {chartData.length > 0 && @@ -176,16 +176,20 @@ function CustomLegend({ - + Total purchases - {formatBalance(data.totalPurchases, 'USD', 2)} + + {formatBalance(data.totalPurchases, 'USD', 2)} + - + Principal repayments - {formatBalance(data.principalRepayments, 'USD', 2)} + + {formatBalance(data.principalRepayments, 'USD', 2)} + - + Interest - {formatBalance(data.interest, 'USD', 2)} + + {formatBalance(data.interest, 'USD', 2)} + {/* @@ -53,9 +56,11 @@ export function LayoutBase({ children, gap }: LayoutBaseProps) { - -