Skip to content

Commit

Permalink
FI-1979 Small adjustment to flex model on suite options (#358)
Browse files Browse the repository at this point in the history
* adjust flex styles

* remove padding

---------

Co-authored-by: Alyssa Wang <awang@mitre.org>
  • Loading branch information
AlyssaWang and AlyssaWang authored May 12, 2023
1 parent 4a0ae5e commit 6dee1e7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
34 changes: 17 additions & 17 deletions client/src/components/SuiteOptionsPage/SuiteOptionsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,36 +151,36 @@ const SuiteOptionsPage: FC<SuiteOptionsPageProps> = ({ testSuite }) => {
maxHeight="100vh"
role="main"
>
{/* Title */}
<Box alignItems="center" maxWidth="800px" sx={windowIsSmall ? { m: 2 } : { mt: 6 }}>
<Typography
variant="h2"
component="h1"
align="center"
sx={{
color: lightTheme.palette.common.orangeDarker,
fontSize: windowIsSmall ? '2rem' : 'auto',
}}
>
{testSuite?.title}
</Typography>
</Box>

<Box
display="flex"
flexWrap="wrap"
alignItems="center"
justifyContent="space-evenly"
width="100%"
sx={windowIsSmall ? { overflow: 'auto' } : { mt: 4, pb: 8, overflow: 'hidden' }}
sx={windowIsSmall ? { overflow: 'auto' } : { mt: 4 }}
>
{/* Description */}
<Box
maxWidth={descriptionWidth}
maxHeight={windowIsSmall ? 'none' : '100%'}
overflow="auto"
my={3}
>
{/* Title */}
<Box alignItems="center" maxWidth="800px" sx={windowIsSmall ? { m: 2 } : { mt: 6 }}>
<Typography
variant="h3"
component="h1"
align="center"
sx={{
color: lightTheme.palette.common.orangeDarker,
fontSize: windowIsSmall ? '2rem' : 'auto',
fontWeight: 'bolder',
}}
>
{testSuite?.title}
</Typography>
</Box>
{/* Description */}
<Typography
variant="h6"
component="h2"
Expand Down
1 change: 1 addition & 0 deletions client/src/components/SuiteOptionsPage/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export default makeStyles()((theme: Theme) => ({
flexDirection: 'column',
padding: '16px 0',
borderRadius: '16px',
height: '100%',
},
}));

0 comments on commit 6dee1e7

Please # to comment.