scroll inside map previews
This commit is contained in:
parent
170a7faf0f
commit
dced0a3a5c
|
@ -62,7 +62,7 @@ function MapChooserDialog({mapNames, theme, onClose, onConfirm}: {
|
||||||
const [chosenMap, setChosenMap] = useState<string>();
|
const [chosenMap, setChosenMap] = useState<string>();
|
||||||
return <Dialog>
|
return <Dialog>
|
||||||
<h3>Choose a map</h3>
|
<h3>Choose a map</h3>
|
||||||
<Row className="MapChooser-Row">
|
<Row className="MapChooser-Row overflow-scroll">
|
||||||
{mapNames.map(name => <MapPreview
|
{mapNames.map(name => <MapPreview
|
||||||
key={name}
|
key={name}
|
||||||
mapName={name}
|
mapName={name}
|
||||||
|
|
|
@ -13,6 +13,4 @@
|
||||||
|
|
||||||
max-height: 75vh;
|
max-height: 75vh;
|
||||||
max-width: 75vw;
|
max-width: 75vw;
|
||||||
|
|
||||||
overflow: scroll;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ export default function Dialog({children, className}: {
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
className?: string;
|
className?: string;
|
||||||
}) {
|
}) {
|
||||||
return <Column className={'Dialog ' + (className ?? '')}>
|
return <Column className={'Dialog overflow-scroll ' + (className ?? '')}>
|
||||||
{children}
|
{children}
|
||||||
</Column>
|
</Column>
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,3 +60,7 @@ html, body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overflow-scroll {
|
||||||
|
overflow: scroll;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue