style(front-end): move the VncDisplay component to the center of the server page in fullDisplay mode

main
Josue 3 years ago
parent a2949c3453
commit 1278cc3f91
  1. 16
      striker-ui/pages/server/index.tsx

@ -9,11 +9,8 @@ import Header from '../../components/Header';
const useStyles = makeStyles((theme) => ({ const useStyles = makeStyles((theme) => ({
preview: { preview: {
width: '20%', width: '25%',
height: '100%', height: '100%',
[theme.breakpoints.down('lg')]: {
width: '25%',
},
[theme.breakpoints.down('md')]: { [theme.breakpoints.down('md')]: {
width: '100%', width: '100%',
}, },
@ -22,10 +19,7 @@ const useStyles = makeStyles((theme) => ({
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
width: '100%', width: '100%',
justifyContent: 'space-between', justifyContent: 'center',
[theme.breakpoints.down('md')]: {
display: 'block',
},
}, },
})); }));
@ -44,10 +38,8 @@ const Server = (): JSX.Element => {
<Header /> <Header />
{typeof uuid === 'string' && {typeof uuid === 'string' &&
(previewMode ? ( (previewMode ? (
<Box className={classes.container}> <Box className={classes.preview}>
<Box className={classes.preview}> <Preview setMode={setPreviewMode} serverName={server_name} />
<Preview setMode={setPreviewMode} serverName={server_name} />
</Box>
</Box> </Box>
) : ( ) : (
<Box className={classes.container}> <Box className={classes.container}>

Loading…
Cancel
Save