Visible file's name lenght reduced for attachments

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@122556 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-01-27 11:03:06 +00:00
parent ab524e6e82
commit c7d0deca1b
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class AttachmentPreviewer extends Composite {
this.fileNameLabel.setTitle(fileName);
this.imagePreview.setTitle(fileName);
fileName = fileName.length() > 36 ? fileName.substring(0, 33) + " ..." : fileName;
fileName = fileName.length() > 26 ? fileName.substring(0, 22) + " ..." : fileName;
this.fileNameLabel.setText(fileName);
// style the delete button
this.deleteAttachment.setStyleName("su-deleteAttachment");