Skip to content

Commit

Permalink
Responsive changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-akamai committed Feb 7, 2024
1 parent fb55dbb commit 3d3c101
Showing 1 changed file with 42 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,18 @@ export const IPTransfer = (props: Props) => {
];

return (
<Grid container key={state.sourceIP} spacing={2} xs={12}>
<Grid
sx={{
[theme.breakpoints.down('md')]: {
backgroundColor: theme.color.grey5,
mb: 3,
},
}}
container
key={state.sourceIP}
spacing={2}
xs={12}
>
<Grid
sx={{
alignItems: 'center',
Expand All @@ -267,7 +278,20 @@ export const IPTransfer = (props: Props) => {
md={3}
xs={12}
>
<Typography>{state.sourceIP}</Typography>
<Typography>
<Typography
sx={{
[theme.breakpoints.up('md')]: {
display: 'none',
},
}}
component="span"
fontFamily={theme.font.bold}
>
IP address:{' '}
</Typography>
{state.sourceIP}
</Typography>
</Grid>
<StyledAutoGrid md={3} xs={12}>
<Select
Expand Down Expand Up @@ -481,29 +505,38 @@ export const IPTransfer = (props: Props) => {
</div>
) : (
<>
<Grid container spacing={2} sx={{ width: '100%' }}>
<Grid container xs={12}>
<Grid
sx={{
[theme.breakpoints.up('sm')]: {
width: `calc(175px + ${theme.spacing(2)})`,
[theme.breakpoints.down('md')]: {
display: 'none',
},
width: '100%',
}}
data-qa-transfer-ip-label
sm={3}
xs={12}
>
<Typography>IP Address</Typography>
</Grid>
<Grid
sx={{
[theme.breakpoints.down('sm')]: {
pl: 0.5,
[theme.breakpoints.down('md')]: {
display: 'none',
},
}}
>
<Typography>Actions</Typography>
</Grid>
</Grid>
<Grid xs={12}>
<Grid
sx={{
[theme.breakpoints.down('md')]: {
visibility: 'hidden',
},
}}
xs={12}
>
<Divider />
</Grid>
{linodes.length === 0 && searchText === '' ? (
Expand All @@ -517,7 +550,7 @@ export const IPTransfer = (props: Props) => {
with which to transfer IPs.
</Typography>
) : (
<Grid spacing={2} sx={{ width: '100%' }}>
<Grid spacing={2} xs={12}>
{Object.values(ips).map(ipRow)}
</Grid>
)}
Expand Down

0 comments on commit 3d3c101

Please sign in to comment.