fix image styling on funding page

This commit is contained in:
Barry Gitarts 2019-08-09 10:10:04 -04:00 committed by Barry G
parent 92c984607b
commit 22d907ac98
2 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,7 @@ function MediaView({ className, isVideo, source, playing, imgClass }) {
<ReactPlayer width="100%" height="100%" url={source} playing={playing} controls/>}
{!isVideo && <CardMedia
component="img"
alt="video"
alt="image"
className={imgClass}
src={source}
title="media-description"

View File

@ -127,6 +127,10 @@ const styles = theme => ({
halfText: {
gridColumnStart: 4
},
imgClass: {
maxHeight: '40vh',
maxWidth: '30vw'
},
chatRoomIcon: {
justifySelf: 'auto'
},
@ -279,7 +283,7 @@ const SubmissionSection = ({ classes, projectData, projectId, pledges, commitTim
<div className={classes.chatText}>{manifest.code}</div>
</a>
</div>
<MediaView className={classes.fullWidth} isVideo={isVideo} source={mediaUrl} />
<MediaView className={classes.fullWidth} isVideo={isVideo} source={mediaUrl} imgClass={classes.imgClass} />
<TextDisplay
name="Full description"
text={manifest.description}