diff options
author | Yusuke Nemoto <kaakaa@users.noreply.github.com> | 2017-04-13 06:26:02 +0900 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-04-12 14:26:02 -0700 |
commit | 0aa84799fd41cf7c94dc4901095b0ee9f4c511b3 (patch) | |
tree | e498cba7f17e585f97f5e27c8a8e4181c3b35b34 /webapp/components | |
parent | 9b9788cf110b57a080d4a4dae43c7deff0274710 (diff) | |
download | chat-0aa84799fd41cf7c94dc4901095b0ee9f4c511b3.tar.gz chat-0aa84799fd41cf7c94dc4901095b0ee9f4c511b3.tar.bz2 chat-0aa84799fd41cf7c94dc4901095b0ee9f4c511b3.zip |
svg preview (#6045)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/file_preview.jsx | 2 | ||||
-rw-r--r-- | webapp/components/view_image.jsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/file_preview.jsx b/webapp/components/file_preview.jsx index afdb701e0..1e747b372 100644 --- a/webapp/components/file_preview.jsx +++ b/webapp/components/file_preview.jsx @@ -33,7 +33,7 @@ export default class FilePreview extends React.Component { let className = 'file-preview'; let previewImage; - if (type === 'image') { + if (type === 'image' || type === 'svg') { previewImage = ( <img className='file-preview__image' diff --git a/webapp/components/view_image.jsx b/webapp/components/view_image.jsx index 4447e9966..580c9e7a4 100644 --- a/webapp/components/view_image.jsx +++ b/webapp/components/view_image.jsx @@ -180,7 +180,7 @@ export default class ViewImageModal extends React.Component { if (this.state.loaded[this.state.imgId]) { const fileType = Utils.getFileType(fileInfo.extension); - if (fileType === 'image') { + if (fileType === 'image' || fileType === 'svg') { content = ( <ImagePreview fileInfo={fileInfo} |