Skip to content

Commit d958002

Browse files
committed
#1638 - responsive tabs
1 parent c036e67 commit d958002

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/frontend/src/layouts/PageTitle/PageTitle.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,20 @@ const PageTitle: React.FC<PageTitleProps> = ({ title, previousPages, headerRight
2828
<PageBreadcrumbs currentPageTitle={title} previousPages={previousPages} />
2929
<Box sx={{ mb: 2 }}>
3030
<Grid container rowSpacing={1}>
31-
<Grid item xs={4} md={4}>
31+
<Grid item xs={6} md={4}>
3232
<Typography variant="h4" fontSize={30}>
3333
{title}
3434
</Typography>
3535
</Grid>
36-
<Grid item xs={8} md={4}>
36+
<Grid item xs={0} md={4} sx={{ display: { xs: 'none', md: 'block' } }}>
3737
{tabs && <Box>{tabs}</Box>}
3838
</Grid>
39-
<Grid item xs={12} md={4} textAlign={['left', 'left', 'right']}>
39+
<Grid item xs={6} md={4} textAlign={['left', 'right']}>
4040
{headerRight}
4141
</Grid>
42+
<Grid item xs={12} md={0} justifyContent={'center'} sx={{ display: { xs: 'flex', md: 'none' } }}>
43+
{tabs && <Box>{tabs}</Box>}
44+
</Grid>
4245
</Grid>
4346
</Box>
4447
</>

src/frontend/src/pages/ChangeRequestsPage/ChangeRequestsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ const ChangeRequestsTable: React.FC = () => {
250250
reviewer: fullNamePipe(v.reviewer)
251251
})) || []
252252
}
253-
columns={windowSize < 1000 ? smallColumns : columns}
253+
columns={windowSize < 900 ? smallColumns : columns}
254254
getRowId={(row) => row.crId}
255255
sx={{
256256
border: 0,

0 commit comments

Comments
 (0)