Removed unused custom-file CSS class that was being applied to non-image file attachment previews
Этот коммит содержится в:
@@ -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
|
// 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
|
// 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) {
|
utils.getFileSize(fileInfo.path + "." + fileInfo.ext, function(self, _filename) {
|
||||||
@@ -94,7 +89,7 @@ module.exports = React.createClass({
|
|||||||
}(this, filename));
|
}(this, filename));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={containerClassName} key={filename}>
|
<div className="post-image__column" key={filename}>
|
||||||
{thumbnail}
|
{thumbnail}
|
||||||
<div className="post-image__details">
|
<div className="post-image__details">
|
||||||
<div className="post-image__name">{fileInfo.name}</div>
|
<div className="post-image__name">{fileInfo.name}</div>
|
||||||
|
|||||||
@@ -120,9 +120,6 @@
|
|||||||
margin: 5px 10px 5px 0;
|
margin: 5px 10px 5px 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
border: 1px solid lightgrey;
|
border: 1px solid lightgrey;
|
||||||
&.custom-file {
|
|
||||||
// TODO remove this class if it doesn't end up getting used any more
|
|
||||||
}
|
|
||||||
.post__load {
|
.post__load {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user