Skip to content
Snippets Groups Projects
Unverified Commit 64adb92a authored by Chris Beer's avatar Chris Beer Committed by GitHub
Browse files

Use an explicit placeholder for missing manifest thumbnails (#3447)

parent eefc88a3
Branches
Tags
No related merge requests found
...@@ -104,6 +104,8 @@ export class ManifestListItem extends React.Component { ...@@ -104,6 +104,8 @@ export class ManifestListItem extends React.Component {
> >
<Grid container spacing={2} className={classes.label} component="span"> <Grid container spacing={2} className={classes.label} component="span">
<Grid item xs={4} sm={3} component="span"> <Grid item xs={4} sm={3} component="span">
{ thumbnail
? (
<Img <Img
className={[classes.thumbnail, ns('manifest-list-item-thumb')].join(' ')} className={[classes.thumbnail, ns('manifest-list-item-thumb')].join(' ')}
src={[thumbnail]} src={[thumbnail]}
...@@ -119,6 +121,8 @@ export class ManifestListItem extends React.Component { ...@@ -119,6 +121,8 @@ export class ManifestListItem extends React.Component {
/> />
)} )}
/> />
)
: <Skeleton className={classes.placeholder} variant="rect" height={80} width={120} />}
</Grid> </Grid>
<Grid item xs={8} sm={9} component="span"> <Grid item xs={8} sm={9} component="span">
{ isCollection && ( { isCollection && (
...@@ -139,6 +143,8 @@ export class ManifestListItem extends React.Component { ...@@ -139,6 +143,8 @@ export class ManifestListItem extends React.Component {
</Grid> </Grid>
<Grid item xs={4} sm={2}> <Grid item xs={4} sm={2}>
{ manifestLogo
&& (
<Img <Img
src={[manifestLogo]} src={[manifestLogo]}
alt="" alt=""
...@@ -154,6 +160,7 @@ export class ManifestListItem extends React.Component { ...@@ -154,6 +160,7 @@ export class ManifestListItem extends React.Component {
/> />
)} )}
/> />
)}
</Grid> </Grid>
</Grid> </Grid>
) : ( ) : (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment