From 8245b7b3b203a55cdce0d257f7ef2e6a046d6627 Mon Sep 17 00:00:00 2001 From: billy Date: Sun, 30 Mar 2025 15:36:54 -0400 Subject: [PATCH] Update App layout and enhance BuildingButton styles for improved UI. Adjusted spacing and column count in SimpleGrid for better building display, and refined text size and button properties in BuildingButton for enhanced readability and usability. --- src/App.tsx | 6 +++--- src/components/BuildingButton.tsx | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 11c9533..4ad94bd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -94,8 +94,8 @@ function App() { cursor={hasStarted ? "pointer" : "default"} > - - + + {/* Game Title */} @@ -103,7 +103,7 @@ function App() { Clicker Clicker 2 {/* Buildings Grid */} - + {availableBuildings.map((building) => ( - {title} + {title} {/* Overlay for owned count */} @@ -198,6 +198,13 @@ export function BuildingButton({ color="text.dark" size="sm" flexGrow={1} + px={1} + height="auto" + minH="2rem" + whiteSpace="normal" + textAlign="center" + lineHeight="1.2" + fontSize="xs" > Buy ({formatNumber(cost)} points) @@ -211,6 +218,13 @@ export function BuildingButton({ size="sm" flexGrow={1} variant="outline" + px={1} + height="auto" + minH="2rem" + whiteSpace="normal" + textAlign="center" + lineHeight="1.2" + fontSize="xs" > Upgrade ({formatNumber(upgradeCost)} points)