Skip to content

Commit dfdc629

Browse files
committed
Wrap elements of ManifestList on small screens
1 parent 7725b5c commit dfdc629

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/components/ManifestForm.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,14 @@ export function ManifestForm({
3838
if (!addResourcesOpen) return null;
3939

4040
return (
41-
<form onSubmit={formSubmit}>
41+
<form onSubmit={formSubmit}>
4242
<Grid
4343
container
4444
spacing={2}
4545
columns={12}
46-
wrap="nowrap"
4746
sx={{ mt: 0.5 }}
4847
>
49-
<Grid size={9} sx={{ flexGrow: 1}}>
48+
<Grid size={{ sm: 'grow', xs: 12 }}>
5049
<TextField
5150
autoFocus
5251
fullWidth

src/components/ManifestListItem.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function ManifestListItem({
120120
<Grid
121121
container
122122
className={ns('manifest-list-item')}
123-
sx={{ width: '100%', alignItems: 'center', flexWrap: 'nowrap' }}
123+
sx={{ width: '100%', alignItems: 'center' }}
124124
>
125125
<Grid size={{ sm: 5, xs: 12 }}>
126126
<ButtonBase
@@ -130,7 +130,6 @@ export function ManifestListItem({
130130
sx={{ justifyContent: 'flex-start', alignItems: 'center', width: '100%' }}
131131
>
132132
<Grid container component="div" sx={{ width: '100%' }}>
133-
{/* <Grid size={3} sx={{ display: 'flex', justifyContent: 'flex-start', alignItems: 'center', width: 120, flexShrink: 0, }} > */}
134133
<Grid size={3} sx={{ display: 'flex', justifyContent: 'flex-start', alignItems: 'center' }} >
135134
{thumbnail ? (
136135
<StyledThumbnail

src/components/ManifestListItemError.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export function ManifestListItemError({
1414
}) {
1515
const { t } = useTranslation();
1616
return (
17-
<Grid container sx={{ width: '100%', alignItems: 'center', flexWrap: 'nowrap' }}>
18-
<Grid container size={{ sm: 5, xs: 6 }} sx={{alignItems: 'center'}}>
17+
<Grid container sx={{ width: '100%', alignItems: 'center' }}>
18+
<Grid container size={{ sm: 5, xs: 12 }} sx={{alignItems: 'center'}}>
1919
<ErrorIcon sx={{
2020
color: 'error.main',
2121
height: '2rem',
@@ -27,7 +27,7 @@ export function ManifestListItemError({
2727
<Typography sx={{ wordBreak: 'break-all' }}>{manifestId}</Typography>
2828
</Grid>
2929

30-
<Grid container size={{ sm: 7, xs: 6 }}>
30+
<Grid container size={{ sm: 7, xs: 12 }}>
3131
<Button onClick={() => { onDismissClick(manifestId); }}>
3232
{t('dismiss')}
3333
</Button>

0 commit comments

Comments
 (0)