Skip to content

Commit

Permalink
fix: solve the accordion issue on mobile (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReidyT authored Dec 19, 2024
1 parent e94c3f0 commit 351b1a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/modules/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const theme = createTheme({

const RootDiv = styled('div')({
flexGrow: 1,
height: '100vh',
minHeight: '100vh',
background: '#fafaff',
});

Expand Down
2 changes: 1 addition & 1 deletion src/modules/common/SimulationControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const SimulationControl = (): JSX.Element => {
};

return (
<Stack mt={2} alignItems="center" spacing={2}>
<Stack mt={2} mb={2} alignItems="center" spacing={2}>
<Stack alignItems="end">
<SpeedButton />
<LabelledSlider
Expand Down
10 changes: 7 additions & 3 deletions src/modules/main/PlayerView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ const PlayerViewComponent = (): JSX.Element => {

if (status === SimulationStatus.INITIAL_LOADING) {
return (
<Stack width="100%" height="100%" justifyContent="center" spacing={1}>
<Stack
width="100%"
height="100vh"
p={2}
justifyContent="center"
spacing={1}
>
<Stack alignItems="center">
<Typography variant="h4">{t('LOADING_MESSAGE')}</Typography>
</Stack>
Expand All @@ -29,8 +35,6 @@ const PlayerViewComponent = (): JSX.Element => {

return (
<Stack
sx={{ background: '#fafaff' }}
height="100%"
direction={{ xs: 'column-reverse', md: 'row' }}
justifyContent="center"
>
Expand Down

0 comments on commit 351b1a4

Please sign in to comment.