#22370 Use a max-height for preview image shown in the pop-up

This commit is contained in:
Francesco Mangiacrapa 2021-11-10 14:16:27 +01:00
parent 17099e9a8f
commit e8e60f6608
4 changed files with 13 additions and 3 deletions

View File

@ -4,6 +4,12 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v2.0.1-SNAPSHOT] - 2021-11-10
#### Fixes
- [#22370] Use a max-height for preview image shown in the pop-up
## [v2.0.0] - 2021-07-30 ## [v2.0.0] - 2021-07-30
#### Enhancements #### Enhancements
@ -17,7 +23,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- [#22041] Files have been ported to FileSet model - [#22041] Files have been ported to FileSet model
- [#21991] Implemented the Layer Switcher - [#21991] Implemented the Layer Switcher
## [v1.2.0-SNAPSHOT] - 2021-07-19 ## [v1.2.0] - 2021-07-19
#### Enhancements #### Enhancements

View File

@ -14,7 +14,7 @@
<groupId>org.gcube.portlets.user</groupId> <groupId>org.gcube.portlets.user</groupId>
<artifactId>geoportal-data-viewer-app</artifactId> <artifactId>geoportal-data-viewer-app</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<version>2.0.0</version> <version>2.0.1-SNAPSHOT</version>
<name>GeoPortal Data Viewer App</name> <name>GeoPortal Data Viewer App</name>
<description>The GeoPortal Data Viewer App is an application to access, discovery and navigate the GeoNa products by a Web-Map Interface</description> <description>The GeoPortal Data Viewer App is an application to access, discovery and navigate the GeoNa products by a Web-Map Interface</description>

View File

@ -754,7 +754,7 @@ public class LayerManager {
UploadedImageDV img = listUI.get(0); UploadedImageDV img = listUI.get(0);
if (img.getListWsContent() != null) { if (img.getListWsContent() != null) {
WorkspaceContentDV wsContent = img.getListWsContent().get(img.getListWsContent().size() - 1); WorkspaceContentDV wsContent = img.getListWsContent().get(img.getListWsContent().size() - 1);
String theImgHTML = "<img src=\"" + wsContent.getLink() + "\"></img>"; String theImgHTML = "<img class='popup-img-preview' src=\"" + wsContent.getLink() + "\"></img>";
GWT.log("theImgHTML: " + theImgHTML); GWT.log("theImgHTML: " + theImgHTML);
// GeoportalDataViewerConstants.print("The row are: // GeoportalDataViewerConstants.print("The row are:
// "+flex.getRowCount()); // "+flex.getRowCount());

View File

@ -83,6 +83,10 @@ body {
font-weight: bold; font-weight: bold;
} }
.popup-img-preview{
max-height: 200px;
}
#page-view-details { #page-view-details {
margin: 10px; margin: 10px;
text-rendering: optimizelegibility; text-rendering: optimizelegibility;