Skip to content

Commit

Permalink
fix: layout correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fung committed Oct 29, 2019
1 parent 1dd7202 commit 64e9e58
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/app/modules/QueryBuilder/common/QbStepNavigator.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Box, useTheme } from '@material-ui/core';
import { Box, Grid, useTheme } from '@material-ui/core';
import useMediaQuery from '@material-ui/core/useMediaQuery/useMediaQuery';
export const QbStepNavigator = (props: { children: React.ReactNode }) => {
const theme = useTheme();
Expand All @@ -12,14 +12,16 @@ export const QbStepNavigator = (props: { children: React.ReactNode }) => {
// const justify = if(childCount > 1){return "space-in-between";}else{return "flex-end";}

return (
<Box
display="flex"
justifyContent={childCount > 1 ? 'space-between' : 'flex-end'}
width="100%"
marginTop="50px"
padding="16px"
>
{props.children}
</Box>
<Grid item lg={12}>
<Box
display="flex"
justifyContent={childCount > 1 ? 'space-between' : 'flex-end'}
// width="100%"
marginTop="50px"
// padding="16px"
>
{props.children}
</Box>
</Grid>
);
};

0 comments on commit 64e9e58

Please sign in to comment.