diff --git a/distro/changelog.xml b/distro/changelog.xml index f6d93c9..c6554e1 100644 --- a/distro/changelog.xml +++ b/distro/changelog.xml @@ -1,6 +1,8 @@ Removed GWT Standard css + Style changes + Responsive widget First Release diff --git a/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/ui/Carousel.java b/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/ui/Carousel.java index 923e624..543f3fd 100644 --- a/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/ui/Carousel.java +++ b/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/ui/Carousel.java @@ -101,8 +101,8 @@ public class Carousel extends Composite{ commands.setCellHorizontalAlignment(nextButton, HorizontalPanel.ALIGN_RIGHT); // set sizes - downloadButton.setWidth("80px"); - closeButton.setWidth("80px"); + downloadButton.setWidth("90px"); + closeButton.setWidth("90px"); downloadButtonSmart.setWidth("15px"); closeButtonSmart.setWidth("15px"); @@ -300,8 +300,8 @@ public class Carousel extends Composite{ shownImage.setTitle(listOfAttachmentsToShow.get(currentPreviewPosition).getToolTipToShow()); // change the title to the modal - String shownTitle = listOfAttachmentsToShow.get(currentPreviewPosition).getTitleToShow().length() > 40 ? - listOfAttachmentsToShow.get(currentPreviewPosition).getTitleToShow().substring(0, 40) + "..." : + String shownTitle = listOfAttachmentsToShow.get(currentPreviewPosition).getTitleToShow().length() > 50 ? + listOfAttachmentsToShow.get(currentPreviewPosition).getTitleToShow().substring(0, 50) + "..." : listOfAttachmentsToShow.get(currentPreviewPosition).getTitleToShow(); mainModalPanel.setTitle(shownTitle); diff --git a/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/ui/Carousel.ui.xml b/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/ui/Carousel.ui.xml index a7ffa18..95d62c9 100644 --- a/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/ui/Carousel.ui.xml +++ b/src/main/java/org/gcube/portlets/widgets/imagepreviewerwidget/client/ui/Carousel.ui.xml @@ -13,12 +13,12 @@ + styleName="arrow-left"> Download Close - + diff --git a/src/main/webapp/ImagePreviewer.css b/src/main/webapp/ImagePreviewer.css index 3e635aa..d5c3c1f 100644 --- a/src/main/webapp/ImagePreviewer.css +++ b/src/main/webapp/ImagePreviewer.css @@ -69,8 +69,16 @@ width: auto; } -.arrow { - color: white; +.arrow-left{ + color: gray!important; +} + +.arrow-left:hover{ + color: white!important; +} + +.arrow-right{ + color: white!important; } .modal-body {