fix for very long file names
This commit is contained in:
+1
-1
@@ -2596,7 +2596,7 @@
|
|||||||
render: function() {
|
render: function() {
|
||||||
var filename = this.props.filename || "file_attachment";
|
var filename = this.props.filename || "file_attachment";
|
||||||
if (filename.length > 36) {
|
if (filename.length > 36) {
|
||||||
filename = filename.substring(0, 16) + "..." + filename.substring(-16);
|
filename = filename.substr(0, 16) + "..." + filename.substr(-16);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className="attachment">
|
<div className="attachment">
|
||||||
|
|||||||
Reference in New Issue
Block a user