Skip to content

Commit ad93e90

Browse files
authored
Add scrollable dropdown for WFS format selection menu (#9184)
* Fix the WFS format menu for very long download format lists.
1 parent 9a883cd commit ad93e90

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

web-ui/src/main/resources/catalog/components/viewer/wfs/partials/download.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<span>{{type.label}}</span>
5656
<span class="caret"></span>
5757
</button>
58-
<ul class="dropdown-menu">
58+
<ul class="dropdown-menu gn-wfs-formats-menu">
5959
<li class="dropdown-header" data-translate="">downloadAllIn</li>
6060
<li data-ng-repeat="f in formats | orderBy:f track by $index">
6161
<a
@@ -114,7 +114,7 @@
114114
<span>{{ftSelected.name.localPart}}</span>
115115
<span class="caret"></span>
116116
</button>
117-
<ul class="dropdown-menu">
117+
<ul class="dropdown-menu gn-wfs-formats-menu">
118118
<li data-ng-repeat="format in formats | orderBy:format">
119119
<a
120120
data-gn-click-and-spin="downloadFeatureType(ftSelected,

web-ui/src/main/resources/catalog/style/gn_metadata.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,3 +779,13 @@ ul.container-list {
779779
height: 100%;
780780
}
781781
}
782+
783+
.gn-wfs-formats-menu {
784+
max-height: 300px;
785+
overflow-y: auto;
786+
background-color: @dropdown-bg;
787+
788+
&::-webkit-scrollbar-track {
789+
background-color: @dropdown-bg;
790+
}
791+
}

0 commit comments

Comments
 (0)