From ac48cece8ab483e51cd7d00e4065cef1401bef60 Mon Sep 17 00:00:00 2001 From: whekin Date: Wed, 11 Mar 2026 19:58:09 +0400 Subject: [PATCH] refactor(miniapp): tighten overview screen density --- apps/miniapp/src/index.css | 12 ++-- apps/miniapp/src/screens/balances-screen.tsx | 2 +- apps/miniapp/src/screens/home-screen.tsx | 74 +++++++++++--------- 3 files changed, 47 insertions(+), 41 deletions(-) diff --git a/apps/miniapp/src/index.css b/apps/miniapp/src/index.css index 95cb684..9d4cad5 100644 --- a/apps/miniapp/src/index.css +++ b/apps/miniapp/src/index.css @@ -284,6 +284,12 @@ button { gap: 12px; } +.summary-card-grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 12px; +} + .panel { border-radius: 24px; padding: 18px; @@ -904,11 +910,7 @@ button { padding: 32px 24px 40px; } - .home-grid { - grid-template-columns: repeat(4, minmax(0, 1fr)); - } - - .home-grid--summary { + .summary-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } diff --git a/apps/miniapp/src/screens/balances-screen.tsx b/apps/miniapp/src/screens/balances-screen.tsx index 6f8048e..2a72ff0 100644 --- a/apps/miniapp/src/screens/balances-screen.tsx +++ b/apps/miniapp/src/screens/balances-screen.tsx @@ -94,7 +94,7 @@ export function BalancesScreen(props: Props) { )} -
+
-
- {props.copy.remainingLabel ?? ''} - -
-
- {props.copy.shareRent ?? ''} - -
-
- {props.copy.shareUtilities ?? ''} - -
-
- {props.copy.purchasesTitle ?? ''} - -
+
+
+
+ {props.copy.remainingLabel ?? ''} + +
+
+ {props.copy.shareRent ?? ''} + +
+
+ {props.copy.shareUtilities ?? ''} + +
+
+ {props.copy.purchasesTitle ?? ''} + +
+
) } return ( -
- - -
- {props.copy.pendingRequests ?? ''} - {String(props.pendingMembersCount)} -
-
+
+
+ + +
+ {props.copy.pendingRequests ?? ''} + {String(props.pendingMembersCount)} +
+
+