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:
parent
ab524e6e82
commit
c7d0deca1b
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue