diff options
author | Asaad Mahmood <asaadmahmood@users.noreply.github.com> | 2017-03-17 17:19:54 +0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-03-17 08:19:54 -0400 |
commit | bfae88e60c7a623afae82e06ce1421ca778c06e7 (patch) | |
tree | 38cc13b8c095cf9bd0ad152ba9d80989137aed27 /webapp/components/view_image.jsx | |
parent | 6f87438cbb0eca34e1104bcda41ea40477a23bd1 (diff) | |
download | chat-bfae88e60c7a623afae82e06ce1421ca778c06e7.tar.gz chat-bfae88e60c7a623afae82e06ce1421ca778c06e7.tar.bz2 chat-bfae88e60c7a623afae82e06ce1421ca778c06e7.zip |
Ui improvements (#5755)
* PLT-5816 - Flagged posts tooltip fix
* PLT-5766 - Link previews appearing outside the box
* PLT-5795 - Fixing alignment user list in channel
* PLT-5818 - Reset password error not aligned
* PLT-5837 - Adjusting image preview max height
* PLT-5778 - Updating word break for paragraphs
* PLT-5848 - Updating label for file error
* PLT-5846 - Markdown tables extra border on mobile
* PLT-5662 - Pinned post UI improvement
* Fixing eslint error
* Updating tooltip eslint issue
* PLT-5832 - Removing error styling on labels
Diffstat (limited to 'webapp/components/view_image.jsx')
-rw-r--r-- | webapp/components/view_image.jsx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/webapp/components/view_image.jsx b/webapp/components/view_image.jsx index 385138d54..e5c3caa0a 100644 --- a/webapp/components/view_image.jsx +++ b/webapp/components/view_image.jsx @@ -185,7 +185,6 @@ export default class ViewImageModal extends React.Component { <ImagePreview fileInfo={fileInfo} fileUrl={fileUrl} - maxHeight={this.state.imgHeight} /> ); } else if (fileType === 'video' || fileType === 'audio') { @@ -193,7 +192,6 @@ export default class ViewImageModal extends React.Component { <AudioVideoPreview fileInfo={fileInfo} fileUrl={fileUrl} - maxHeight={this.state.imgHeight} /> ); } else if (PDFPreview.supports(fileInfo)) { @@ -344,7 +342,7 @@ LoadingImagePreview.propTypes = { loading: React.PropTypes.string }; -function ImagePreview({fileInfo, fileUrl, maxHeight}) { +function ImagePreview({fileInfo, fileUrl}) { let previewUrl; if (fileInfo.has_preview_image) { previewUrl = FileStore.getFilePreviewUrl(fileInfo.id); @@ -359,16 +357,12 @@ function ImagePreview({fileInfo, fileUrl, maxHeight}) { rel='noopener noreferrer' download={true} > - <img - style={{maxHeight}} - src={previewUrl} - /> + <img src={previewUrl}/> </a> ); } ImagePreview.propTypes = { fileInfo: React.PropTypes.object.isRequired, - fileUrl: React.PropTypes.string.isRequired, - maxHeight: React.PropTypes.number.isRequired + fileUrl: React.PropTypes.string.isRequired }; |