From 54fda606ba91e153ceb22729ce4e46594b5a0a10 Mon Sep 17 00:00:00 2001 From: tkitsunai Date: Thu, 23 Jul 2026 21:25:15 +0900 Subject: [PATCH] fix(frontend): fix spacing and alignment inconsistencies Several small styling inconsistencies found across pages: - Left-align player name text in table row buttons (HistoryRow, TopGlobal, TopPlayer, Search, Legend), removing MUI Button's default min-width so left-aligned text doesn't leave an awkward gap for short names - Fix uneven top/bottom padding in the page header AppBar (Legend, Search, Stats, TopGlobal, TopPlayer) by switching to flex centering instead of a fixed paddingTop with no paddingBottom - Add missing margin between pagination controls and the table, on both sides (TopGlobal, TopPlayer, Player match history) - Vertically align the rank badge, player name, and tags in the Player page header by wrapping them in a flex container, and remove magic-number `top` offsets from the platform/global_rank/ char_rank Typography variants (replaced with vertical-align: middle where the parent isn't a flex container) --- frontend/src/components/HistoryRow.tsx | 23 ++++++++++++++++++++--- frontend/src/pages/Legend.tsx | 10 +++++++++- frontend/src/pages/Player.tsx | 15 ++++++++++++--- frontend/src/pages/Search.tsx | 10 +++++++++- frontend/src/pages/Stats.tsx | 9 ++++++++- frontend/src/pages/TopGlobal.tsx | 14 +++++++++++--- frontend/src/pages/TopPlayer.tsx | 14 +++++++++++--- frontend/src/utils/Themes.tsx | 7 +------ 8 files changed, 81 insertions(+), 21 deletions(-) diff --git a/frontend/src/components/HistoryRow.tsx b/frontend/src/components/HistoryRow.tsx index c3a2396..3d54d46 100644 --- a/frontend/src/components/HistoryRow.tsx +++ b/frontend/src/components/HistoryRow.tsx @@ -73,7 +73,15 @@ function HistoryRow(props: { - @@ -116,7 +124,11 @@ function HistoryRow(props: { @@ -279,6 +295,7 @@ function HistoryRow(props: {