Skip to content

Commit 8e27091

Browse files
author
Olesia Solonko
committed
update Global Tsunami Hazard map service: make info panel scrollable
1 parent 9632cc3 commit 8e27091

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

frontend/src/index.html

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,12 @@
270270
.map-info.expanded {
271271
border-radius: 8px;
272272
min-width: 280px;
273-
max-width: 320px;
273+
max-width: 500px;
274+
max-height: calc(100vh - 120px);
274275
cursor: default;
276+
display: flex;
277+
flex-direction: column;
278+
overflow: hidden;
275279
}
276280

277281
/* Text button when collapsed */
@@ -310,6 +314,7 @@
310314
transition: all 0.2s ease;
311315
background: rgba(26, 115, 232, 0.05);
312316
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
317+
flex-shrink: 0;
313318
}
314319

315320
.info-header:hover {
@@ -350,6 +355,7 @@
350355
color: #5f6368;
351356
background: rgba(26, 115, 232, 0.02);
352357
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
358+
flex-shrink: 0;
353359
}
354360

355361
.info-summary-item {
@@ -373,8 +379,28 @@
373379
}
374380

375381
.info-content.expanded {
376-
max-height: 700px;
382+
max-height: calc(100vh - 200px);
377383
padding: 16px;
384+
overflow-y: auto;
385+
overflow-x: hidden;
386+
}
387+
388+
.info-content.expanded::-webkit-scrollbar {
389+
width: 6px;
390+
}
391+
392+
.info-content.expanded::-webkit-scrollbar-track {
393+
background: #f8f9fa;
394+
border-radius: 3px;
395+
}
396+
397+
.info-content.expanded::-webkit-scrollbar-thumb {
398+
background: #dadce0;
399+
border-radius: 3px;
400+
}
401+
402+
.info-content.expanded::-webkit-scrollbar-thumb:hover {
403+
background: #bdc1c6;
378404
}
379405

380406
.info-stat {
@@ -764,7 +790,7 @@
764790

765791
<!-- Map Headline Overlay -->
766792
<div class="map-headline">
767-
GTM Global tsunami hazard – 2017 version
793+
GTM Global tsunami hazard
768794
</div>
769795

770796
<!-- Combined Information and Legend Panel -->

0 commit comments

Comments
 (0)