From c901801c6577a1e5eb8be6a51edfe8cf89dd0fe4 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Fri, 20 Dec 2024 05:51:18 -0700 Subject: [PATCH] Fix rank selection menu placement on mobile --- src/views/Play/QuickMatch.styl | 8 ++++++ src/views/Play/QuickMatch.tsx | 46 +++++++--------------------------- 2 files changed, 17 insertions(+), 37 deletions(-) diff --git a/src/views/Play/QuickMatch.styl b/src/views/Play/QuickMatch.styl index 1cc0f311a8..66693ec140 100644 --- a/src/views/Play/QuickMatch.styl +++ b/src/views/Play/QuickMatch.styl @@ -474,6 +474,14 @@ align-items: center; gap: 0.5rem; } + + .opponent-rank-container { + .ogs-react-select__menu { + right: 0; + width: 6rem; + max-width: 40vw; + } + } } .PlayButton-container { diff --git a/src/views/Play/QuickMatch.tsx b/src/views/Play/QuickMatch.tsx index 570051fec5..aaaa928bcb 100644 --- a/src/views/Play/QuickMatch.tsx +++ b/src/views/Play/QuickMatch.tsx @@ -927,7 +927,7 @@ export function QuickMatch(): JSX.Element { {/* Play Button */}
-
+
{_("Opponent rank")}
setLowerRankDiff(parseInt(ev.target.value))} - disabled={automatch_search_active} - > - {user.anonymous ? ( - - ) : ( - [9, 8, 7, 6, 5, 4, 3, 2, 1, 0].map((v) => ( - - )) - )} - - */} - {" - "} setUpperRankDiff(parseInt(ev.target.value))} - disabled={automatch_search_active} - > - {user.anonymous ? ( - - ) : ( - [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((v) => ( - - )) - )} - - */}