summaryrefslogtreecommitdiffstats
path: root/web/react/components/file_attachment.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-07-23 18:29:53 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-07-29 09:52:09 -0400
commit0f0a887205da3890671fd77ca4b7ece42de8b903 (patch)
treea09c512e59331498b204a295ee3a4c0c6cda15fd /web/react/components/file_attachment.jsx
parentca2b73eac375d7037c50e96330f449de2f2381bc (diff)
downloadchat-0f0a887205da3890671fd77ca4b7ece42de8b903.tar.gz
chat-0f0a887205da3890671fd77ca4b7ece42de8b903.tar.bz2
chat-0f0a887205da3890671fd77ca4b7ece42de8b903.zip
Removed unused custom-file CSS class that was being applied to non-image file attachment previews
Diffstat (limited to 'web/react/components/file_attachment.jsx')
-rw-r--r--web/react/components/file_attachment.jsx7
1 files changed, 1 insertions, 6 deletions
diff --git a/web/react/components/file_attachment.jsx b/web/react/components/file_attachment.jsx
index 87922a615..3f7deed97 100644
--- a/web/react/components/file_attachment.jsx
+++ b/web/react/components/file_attachment.jsx
@@ -78,11 +78,6 @@ module.exports = React.createClass({
);
}
- var containerClassName = "post-image__column";
- if (type !== "image") {
- containerClassName += " custom-file";
- }
-
// TODO fix the race condition here where the file size may arrive before the rest of the page is rendered
// asynchronously request the size of the file so that we can display it next to the thumbnail
utils.getFileSize(fileInfo.path + "." + fileInfo.ext, function(self, _filename) {
@@ -94,7 +89,7 @@ module.exports = React.createClass({
}(this, filename));
return (
- <div className={containerClassName} key={filename}>
+ <div className="post-image__column" key={filename}>
{thumbnail}
<div className="post-image__details">
<div className="post-image__name">{fileInfo.name}</div>