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. 12
      striker-ui/pages/server/index.tsx

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

Loading…
Cancel
Save