From 675f23d1acfba448968e6f1b7d3816403c370b89 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 30 Mar 2023 12:43:45 +0200 Subject: [PATCH] updated css --- CHANGELOG.md | 1 + src/main/webapp/GeoportalDataViewer.css | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2628e88..8306463 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [v3.3.1-SNAPSHOT] - 2023-03-30 - Just including new dependencies +- Improved css ## [v3.3.0] - 2023-02-20 diff --git a/src/main/webapp/GeoportalDataViewer.css b/src/main/webapp/GeoportalDataViewer.css index fb31c9b..1573499 100644 --- a/src/main/webapp/GeoportalDataViewer.css +++ b/src/main/webapp/GeoportalDataViewer.css @@ -38,7 +38,7 @@ body { .ol-popup img { width: 100%; - max-height: 200px; + max-height: 120px; } .ol-popup:after, .ol-popup:before { @@ -783,6 +783,20 @@ RESPONSIVE } } +@media all and (max-height: 900px) { + .ol-popup{ + min-width: 150px; + max-width: 150px; + max-height: 150px; + overflow-y: scroll; + } + .ol-popup img { + width: 100%; + max-width: 150px; + } +} + + /* OPEN COLLECTION UI */ .open-collection-style { padding-left: 10px;