fix: mobile centering

This commit is contained in:
iCrawl
2022-08-23 14:21:48 +02:00
parent 28bc4f42c6
commit 7b5c688844
2 changed files with 14 additions and 2 deletions

View File

@@ -66,6 +66,12 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
};
const useStyles = createStyles((theme) => ({
outer: {
display: 'flex',
height: '100%',
alignItems: 'center',
},
control: {
padding: theme.spacing.xs,
color: theme.colorScheme === 'dark' ? theme.colors.dark![0] : theme.black,
@@ -86,7 +92,7 @@ export default function VersionsRoute(props: Partial<VersionProps> & { error?: s
return props.error ? (
<Box sx={{ display: 'flex', maxWidth: '100%', height: '100%' }}>{props.error}</Box>
) : (
<Container py={96} size="xs">
<Container className={classes.outer} size="xs">
<Stack sx={{ flexGrow: 1 }}>
<Title order={2} ml="xs">
Select a version:

View File

@@ -14,6 +14,12 @@ import { VscArrowRight, VscPackage } from 'react-icons/vsc';
import { PACKAGES } from '~/util/packages';
const useStyles = createStyles((theme) => ({
outer: {
display: 'flex',
height: '100%',
alignItems: 'center',
},
control: {
padding: theme.spacing.xs,
color: theme.colorScheme === 'dark' ? theme.colors.dark![0] : theme.black,
@@ -31,7 +37,7 @@ export default function PackagesRoute() {
const { colorScheme } = useMantineColorScheme();
return (
<Container py={96} size="xs">
<Container className={classes.outer} size="xs">
<Stack sx={{ flexGrow: 1 }}>
<Title order={2} ml="xs">
Select a package: