diff --git a/webapp/components/file_preview.jsx b/webapp/components/file_preview.jsx index afdb701e05..1e747b372a 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 = ( -1) { + return 'svg'; + } + return 'other'; } @@ -449,7 +453,7 @@ export function getIconClassName(fileTypeIn) { return Constants.ICON_NAME_FROM_TYPE[fileType]; } - return 'glyphicon-file'; + return 'generic'; } export function splitFileLocation(fileLocation) {