scroll inside map previews

This commit is contained in:
Vinzenz Schroeter 2024-05-06 01:10:12 +02:00
parent 170a7faf0f
commit dced0a3a5c
4 changed files with 6 additions and 4 deletions

View file

@ -62,7 +62,7 @@ function MapChooserDialog({mapNames, theme, onClose, onConfirm}: {
const [chosenMap, setChosenMap] = useState<string>();
return <Dialog>
<h3>Choose a map</h3>
<Row className="MapChooser-Row">
<Row className="MapChooser-Row overflow-scroll">
{mapNames.map(name => <MapPreview
key={name}
mapName={name}

View file

@ -13,6 +13,4 @@
max-height: 75vh;
max-width: 75vw;
overflow: scroll;
}

View file

@ -6,7 +6,7 @@ export default function Dialog({children, className}: {
children: ReactNode;
className?: string;
}) {
return <Column className={'Dialog ' + (className ?? '')}>
return <Column className={'Dialog overflow-scroll ' + (className ?? '')}>
{children}
</Column>
}

View file

@ -60,3 +60,7 @@ html, body {
display: flex;
flex-direction: row;
}
.overflow-scroll {
overflow: scroll;
}