This commit is contained in:
Olivier Gagnon
2021-10-01 16:22:33 -04:00
parent 5ba7b2796d
commit 50cf362b3b
64 changed files with 120 additions and 6205 deletions
+5 -1
View File
@@ -109,7 +109,11 @@ function ASCIICity(props: IProps): React.ReactElement {
const elems: JSX.Element[] = [];
const lines = props.city.asciiArt.split("\n");
for (const i in lines) {
elems.push(<pre key={i}>{lineElems(lines[i])}</pre>);
elems.push(
<Typography key={i} sx={{ lineHeight: "1em", whiteSpace: "pre" }}>
{lineElems(lines[i])}
</Typography>,
);
}
return <>{elems}</>;