From 9bd8fa9353dab75b6eb5963bf0da7f30678de129 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Fri, 14 Oct 2022 18:12:21 +1300 Subject: [PATCH] Replace height percent setting with flex: 1 This way reacts better to changing the screen sizes. I think there was one bug where the fab wouldn't be precisely at the bottom of the page depending on the flat list length. --- BestList.tsx | 6 +----- EditPlan.tsx | 4 ++-- EditWorkout.tsx | 4 ++-- MassiveFab.tsx | 2 +- Page.tsx | 1 - PlanList.tsx | 2 +- SetList.tsx | 2 +- WorkoutList.tsx | 2 +- 8 files changed, 9 insertions(+), 14 deletions(-) diff --git a/BestList.tsx b/BestList.tsx index eef96b8..b9199bb 100644 --- a/BestList.tsx +++ b/BestList.tsx @@ -65,11 +65,7 @@ export default function BestList() { description="Once sets have been added, this will highlight your personal bests." /> ) : ( - + )} ); diff --git a/EditPlan.tsx b/EditPlan.tsx index b8c4169..c7c364b 100644 --- a/EditPlan.tsx +++ b/EditPlan.tsx @@ -87,8 +87,8 @@ export default function EditPlan() { ); return ( - - + + Days {DAYS.map(day => ( - + + ) : ( set.id?.toString() || ''} diff --git a/SetList.tsx b/SetList.tsx index 55423c3..8521a4e 100644 --- a/SetList.tsx +++ b/SetList.tsx @@ -95,7 +95,7 @@ export default function SetList() { ) : ( s.id!.toString()} onEndReached={next} diff --git a/WorkoutList.tsx b/WorkoutList.tsx index 41dca82..bda6b3d 100644 --- a/WorkoutList.tsx +++ b/WorkoutList.tsx @@ -88,7 +88,7 @@ export default function WorkoutList() { ) : ( w.name} onEndReached={next}