Skip to content

Commit 4b61104

Browse files
committed
Align items in snapshot header
1 parent b7dcbac commit 4b61104

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/app/components/Snapshots/DurationSelect/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,9 @@ export const DurationSelect: FC<DurationSelectProps> = ({
3333
},
3434
]
3535

36-
return <Select defaultValue={defaultValue} handleChange={handleChange} options={options} />
36+
return (
37+
<div className="md:ml-3">
38+
<Select defaultValue={defaultValue} handleChange={handleChange} options={options} />
39+
</div>
40+
)
3741
}

src/app/components/Snapshots/Snapshot.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { FC, ReactNode } from 'react'
22
import { styled } from '@mui/material/styles'
3-
import Box from '@mui/material/Box'
43
import Grid from '@mui/material/Grid'
54
import Typography from '@mui/material/Typography'
65
import { useScreenSize } from '../../hooks/useScreensize'
@@ -24,15 +23,15 @@ export const Snapshot: FC<SnapshotProps> = ({ children, header, scope, title })
2423
<Grid container sx={{ display: 'flex', alignItems: 'center', gap: 3, mb: 4 }}>
2524
<Grid item xs={12} sx={{ px: isMobile ? 4 : 0 }}>
2625
<AppendMobileSearch scope={scope}>
27-
<Box sx={{ display: 'flex', flexDirection: isMobile ? 'column' : 'row', mb: 2 }}>
26+
<div className="flex mb-1 flex-col sm:flex-row sm:items-center">
2827
<Typography
2928
variant="h2"
3029
sx={{ color: theme.palette.layout.main, fontWeight: 700, mr: 3, mb: isMobile ? 4 : 0 }}
3130
>
3231
{title}
3332
</Typography>
3433
{header}
35-
</Box>
34+
</div>
3635
</AppendMobileSearch>
3736
</Grid>
3837
</Grid>

0 commit comments

Comments
 (0)