Allow to open a modal for embedded photo (#5777)
This commit is contained in:
parent
1266c66f79
commit
bf7757cbbc
5 changed files with 41 additions and 14 deletions
|
@ -92,7 +92,7 @@ export default class MediaModal extends ImmutablePureComponent {
|
|||
const height = image.getIn(['meta', 'original', 'height']) || null;
|
||||
|
||||
if (image.get('type') === 'image') {
|
||||
return <ImageLoader previewSrc={image.get('preview_url')} src={image.get('url')} width={width} height={height} alt={image.get('description')} key={image.get('preview_url')} />;
|
||||
return <ImageLoader previewSrc={image.get('preview_url')} src={image.get('url')} width={width} height={height} alt={image.get('description')} key={image.get('url')} />;
|
||||
} else if (image.get('type') === 'gifv') {
|
||||
return <ExtendedVideoPlayer src={image.get('url')} muted controls={false} width={width} height={height} key={image.get('preview_url')} alt={image.get('description')} />;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue