format navigation buttons

pull/43/head
Jon Eugster 2 years ago
parent adcc6a06c7
commit 2efdfe3d07

@ -25,7 +25,7 @@ import { useAppDispatch } from '../hooks';
import { useSelector } from 'react-redux';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faUpload, faArrowRotateRight, faChevronLeft, faChevronRight, faBook, faHome } from '@fortawesome/free-solid-svg-icons'
import { faUpload, faArrowRotateRight, faChevronLeft, faChevronRight, faBook, faHome, faArrowRight, faArrowLeft } from '@fortawesome/free-solid-svg-icons'
import { styled, useTheme, Theme, CSSObject } from '@mui/material/styles';
import { AppBarProps as MuiAppBarProps } from '@mui/material/AppBar';
@ -176,11 +176,11 @@ function Level() {
<Button
disabled={levelId <= 1} component={RouterLink}
to={`/world/${worldId}/level/${levelId - 1}`}
sx={{ ml: 3, mt: 2, mb: 2 }} disableFocusRipple>Previous Level</Button>
sx={{ ml: 3, mt: 2, mb: 2 }} disableFocusRipple><FontAwesomeIcon icon={faArrowLeft}></FontAwesomeIcon>&nbsp;Previous</Button>
<Button
disabled={levelId >= gameInfo.data?.worldSize[worldId]}
component={RouterLink} to={`/world/${worldId}/level/${levelId + 1}`}
sx={{ ml: 3, mt: 2, mb: 2 }} disableFocusRipple>Next Level</Button>
sx={{ ml: 3, mt: 2, mb: 2 }} disableFocusRipple>Next&nbsp;<FontAwesomeIcon icon={faArrowRight}></FontAwesomeIcon></Button>
<Button
component={RouterLink} to={`/`}
sx={{ ml: 3, mt: 2, mb: 2 }} disableFocusRipple><FontAwesomeIcon icon={faHome}></FontAwesomeIcon></Button>

@ -24,3 +24,8 @@ code {
.monaco-workbench > .notifications-toasts.visible {
display: none !important;
}
/* TODO: Do this the correct way. */
.MuiButtonBase-root {
margin : 0 !important;
}

Loading…
Cancel
Save