From 493dcee4176f6807e1d2bc0f208edd2a3d25ee1a Mon Sep 17 00:00:00 2001 From: Jon Eugster Date: Sat, 29 Jul 2023 00:37:19 +0200 Subject: [PATCH] difficulty level --- client/src/components/world_selection_menu.css | 11 ++++++++--- client/src/components/world_selection_menu.tsx | 14 +++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/client/src/components/world_selection_menu.css b/client/src/components/world_selection_menu.css index 48e6d54..806cb2a 100644 --- a/client/src/components/world_selection_menu.css +++ b/client/src/components/world_selection_menu.css @@ -10,17 +10,22 @@ margin-bottom: .2em; } - .world-selection-menu .slider-wrap { - display: inline-block; + display: flex; + flex-direction: row; width: 100%; /* min-width: 16em; */ - padding-left: 3em; + padding-left: 0.5em; padding-right: 3em; margin-left: auto; margin-right: auto; } +.difficulty-label { + font-size: 0.875em; + padding-top: 4px; + padding-right: 1em; +} /* Test for mobile `title`s */ @media (pointer: coarse), (hover: none) { diff --git a/client/src/components/world_selection_menu.tsx b/client/src/components/world_selection_menu.tsx index a2a2ae8..c1b115c 100644 --- a/client/src/components/world_selection_menu.tsx +++ b/client/src/components/world_selection_menu.tsx @@ -44,11 +44,6 @@ const downloadFile = ({ data, fileName, fileType } : downloadFileParam) => { /** The menu that is shown next to the world selection graph */ export function WelcomeMenu() { - function label(x : number) { - return x == 0 ? 'Easy' : x == 1 ? 'Explorer' : 'Strict' - } - - return