Skip to content

Commit 7725b5c

Browse files
committed
Center the SelectCollection component
1 parent 7dfdb2b commit 7725b5c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/SelectCollection.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useCallback } from 'react';
22
import PropTypes from 'prop-types';
33
import Button from '@mui/material/Button';
44
import Grid from '@mui/material/Grid';
5+
import Stack from '@mui/material/Stack';
56
import Typography from '@mui/material/Typography';
67
import ListSharpIcon from '@mui/icons-material/ListSharp';
78
import { useTranslation } from 'react-i18next';
@@ -18,9 +19,9 @@ export function SelectCollection({
1819
}, [collectionPath, manifestId, showCollectionDialog, windowId]);
1920

2021
return (
21-
<Grid container justifyContent="center" alignItems="center">
22-
<Grid container direction="column" alignItems="center">
23-
<Typography variant="h4" component="p">
22+
<Grid container sx={{ width: '100%', alignContent: 'center', justifyContent: 'center' }}>
23+
<Stack>
24+
<Typography variant="h4" component="p" sx={{ textAlign: 'center', mb: 2 }}>
2425
<em>
2526
{t('noItemSelected')}
2627
</em>
@@ -34,7 +35,7 @@ export function SelectCollection({
3435
>
3536
{t('showCollection')}
3637
</Button>
37-
</Grid>
38+
</Stack>
3839
</Grid>
3940
);
4041
}

0 commit comments

Comments
 (0)