From bc20a1e6cade59c54d3b4ec646dd3dcb81e58a7e Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Tue, 13 Oct 2015 14:39:31 +0000 Subject: [PATCH] Updated css and progress bar git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@119687 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../widgets/workspaceuploader/client/resource/FileUpload.css | 2 +- .../client/uploader/UploaderProgressView.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/portlets/widgets/workspaceuploader/client/resource/FileUpload.css b/src/main/java/org/gcube/portlets/widgets/workspaceuploader/client/resource/FileUpload.css index 6216ee8..8befaf8 100644 --- a/src/main/java/org/gcube/portlets/widgets/workspaceuploader/client/resource/FileUpload.css +++ b/src/main/java/org/gcube/portlets/widgets/workspaceuploader/client/resource/FileUpload.css @@ -19,7 +19,7 @@ font: 13px/20px 'Lucida Grande', Tahoma, Verdana, sans-serif; color: #404040; margin: 0px auto; - width: 310px; + width: 320px; } .bar-container > div { diff --git a/src/main/java/org/gcube/portlets/widgets/workspaceuploader/client/uploader/UploaderProgressView.java b/src/main/java/org/gcube/portlets/widgets/workspaceuploader/client/uploader/UploaderProgressView.java index d75fb99..5bdbc2b 100644 --- a/src/main/java/org/gcube/portlets/widgets/workspaceuploader/client/uploader/UploaderProgressView.java +++ b/src/main/java/org/gcube/portlets/widgets/workspaceuploader/client/uploader/UploaderProgressView.java @@ -51,7 +51,7 @@ public class UploaderProgressView { cancelImg = WorkspaceUploaderResources.getImageCancel(); cancelImg.setTitle("Cancel upload"); cancelImg.addStyleName("cancel-upload"); -// hpBar.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); + hpBar.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); hp.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); String text = "
"; @@ -151,7 +151,7 @@ public class UploaderProgressView { else descr = uploader.getStatusDescription(); - text+=""+descr+""; + text+=""+StringUtil.ellipsize(descr, MAX_CHARS, 0)+"
"; text+=""; // GWT.log(text); html.setHTML(text);