From dced0a3a5c1016ebb85e232c5cb5638176fa8a0d Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Mon, 6 May 2024 01:10:12 +0200 Subject: [PATCH] scroll inside map previews --- tank-frontend/src/MapChooser.tsx | 2 +- tank-frontend/src/components/Dialog.css | 2 -- tank-frontend/src/components/Dialog.tsx | 2 +- tank-frontend/src/index.css | 4 ++++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tank-frontend/src/MapChooser.tsx b/tank-frontend/src/MapChooser.tsx index 15519ed..569fbbe 100644 --- a/tank-frontend/src/MapChooser.tsx +++ b/tank-frontend/src/MapChooser.tsx @@ -62,7 +62,7 @@ function MapChooserDialog({mapNames, theme, onClose, onConfirm}: { const [chosenMap, setChosenMap] = useState(); return

Choose a map

- + {mapNames.map(name => + return {children} } diff --git a/tank-frontend/src/index.css b/tank-frontend/src/index.css index 8ba130b..9dfab5a 100644 --- a/tank-frontend/src/index.css +++ b/tank-frontend/src/index.css @@ -60,3 +60,7 @@ html, body { display: flex; flex-direction: row; } + +.overflow-scroll { + overflow: scroll; +}