From 9eaf878346efe025b4e232e71f19ad5f592a3958 Mon Sep 17 00:00:00 2001 From: pineapplestrikesback Date: Sat, 24 Jan 2026 01:16:13 +0100 Subject: [PATCH 1/2] Move weekly volume above activity chart --- src/ui/components/TotalVolumeCard.tsx | 29 ++++++++++++++++++--------- src/ui/pages/Dashboard.tsx | 5 +++-- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/ui/components/TotalVolumeCard.tsx b/src/ui/components/TotalVolumeCard.tsx index 8e4aaaa..a223b2a 100644 --- a/src/ui/components/TotalVolumeCard.tsx +++ b/src/ui/components/TotalVolumeCard.tsx @@ -13,7 +13,7 @@ export function TotalVolumeCard(): React.ReactElement { ); if (isLoading) { - return
; + return
; } const percentage = totalGoal > 0 ? Math.min((totalVolume / totalGoal) * 100, 100) : 0; @@ -27,23 +27,32 @@ export function TotalVolumeCard(): React.ReactElement { }; return ( -
-

Total Weekly Volume

- -
- {volumeDisplay} - sets +
+
+
+

+ Total Weekly Volume +

+
+ {volumeDisplay} + + sets + +
+
+
+

Target {totalGoal}

+

sets/week

+
{/* Progress Bar */} -
+
- -

Target: {totalGoal} sets/week

); } diff --git a/src/ui/pages/Dashboard.tsx b/src/ui/pages/Dashboard.tsx index 2d5342f..2f77c42 100644 --- a/src/ui/pages/Dashboard.tsx +++ b/src/ui/pages/Dashboard.tsx @@ -77,6 +77,9 @@ export function Dashboard(): React.ReactElement {

Workout Overview

+ {/* Total Weekly Volume */} + + {/* Weekly Activity Chart */} @@ -95,8 +98,6 @@ export function Dashboard(): React.ReactElement { )}
- {/* Total Volume */} -
); } From 9ec6f582bff15eed72151b1a61b80a8787659526 Mon Sep 17 00:00:00 2001 From: pineapplestrikesback Date: Sat, 24 Jan 2026 01:44:02 +0100 Subject: [PATCH 2/2] fix: added min-h --- src/ui/components/TotalVolumeCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/components/TotalVolumeCard.tsx b/src/ui/components/TotalVolumeCard.tsx index a223b2a..88b21f5 100644 --- a/src/ui/components/TotalVolumeCard.tsx +++ b/src/ui/components/TotalVolumeCard.tsx @@ -13,7 +13,7 @@ export function TotalVolumeCard(): React.ReactElement { ); if (isLoading) { - return
; + return
; } const percentage = totalGoal > 0 ? Math.min((totalVolume / totalGoal) * 100, 100) : 0; @@ -27,7 +27,7 @@ export function TotalVolumeCard(): React.ReactElement { }; return ( -
+