From 49a9377c840595bea39a3cc4a5aa5407cd446a2c Mon Sep 17 00:00:00 2001 From: Adam Chambers Date: Wed, 29 Nov 2023 15:51:40 -0500 Subject: [PATCH] feat: various responsive improvements --- apps/marginfi-v2-ui/src/components/common/PageHeader.tsx | 2 +- .../desktop/DesktopAccountSummary/DesktopAccountSummary.tsx | 6 +++--- .../UserPositions/UserPositionRow/UserPositionRow.tsx | 2 +- .../components/mobile/MobileAssetsList/MobileAssetsList.tsx | 2 +- apps/marginfi-v2-ui/src/pages/index.tsx | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/marginfi-v2-ui/src/components/common/PageHeader.tsx b/apps/marginfi-v2-ui/src/components/common/PageHeader.tsx index 98a953dfcf..2a5d977ee4 100644 --- a/apps/marginfi-v2-ui/src/components/common/PageHeader.tsx +++ b/apps/marginfi-v2-ui/src/components/common/PageHeader.tsx @@ -13,7 +13,7 @@ const PageHeader: FC = ({ children }) => { return (
-
+
diff --git a/apps/marginfi-v2-ui/src/components/desktop/DesktopAccountSummary/DesktopAccountSummary.tsx b/apps/marginfi-v2-ui/src/components/desktop/DesktopAccountSummary/DesktopAccountSummary.tsx index 9833d0b64d..860cf3c3dd 100644 --- a/apps/marginfi-v2-ui/src/components/desktop/DesktopAccountSummary/DesktopAccountSummary.tsx +++ b/apps/marginfi-v2-ui/src/components/desktop/DesktopAccountSummary/DesktopAccountSummary.tsx @@ -22,9 +22,9 @@ const AccountSummary = () => { const { connected } = useWalletContext(); return ( -
+
-
+
Global stats {
{connected && ( -
+
Your account = ({ activeBankInfo, marginfiAcc return ( -
+
{activeBankInfo.meta.tokenLogoUri && ( { {isStoreInitialized && globalBanks ? ( globalBanks.length > 0 ? ( -
+
{globalBanks.map((bank) => { if (poolFilter === "stable" && !STABLECOINS.includes(bank.meta.tokenSymbol)) return null; if (poolFilter === "lst" && !LSTS.includes(bank.meta.tokenSymbol)) return null; diff --git a/apps/marginfi-v2-ui/src/pages/index.tsx b/apps/marginfi-v2-ui/src/pages/index.tsx index fd88bd2c31..7dae86c16f 100644 --- a/apps/marginfi-v2-ui/src/pages/index.tsx +++ b/apps/marginfi-v2-ui/src/pages/index.tsx @@ -87,7 +87,7 @@ const Home = () => { <> lend -
+
{walletAddress && selectedAccount && isOverride && ( { )}
-
+