Skip to content

Commit

Permalink
Merge pull request #2454 from camptocamp/search_max_height
Browse files Browse the repository at this point in the history
Set search results max-height
  • Loading branch information
fredj committed Mar 20, 2017
2 parents 069100e + f8dfa97 commit 6f02fab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contribs/gmf/less/desktop.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
@padding-base-vertical: 5px;
@padding-base-horizontal: 10px;
@form-group-margin-bottom: 10px;
@search-results-max-height: calc(~"100vh -" @topbar-height + @map-tools-size + (2 * @app-margin));


html, body {
position: relative;
Expand Down
3 changes: 3 additions & 0 deletions contribs/gmf/less/search.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import "../../../node_modules/font-awesome/less/variables.less";

@search-results-max-height: calc(~"100vh -" 6 * @app-margin);

gmf-search {
top: @app-margin;
z-index: @content-index;
Expand Down Expand Up @@ -73,6 +75,7 @@ gmf-search {

.tt-menu {
width: 100%;
max-height: @search-results-max-height;
overflow-x: hidden;
overflow-y: auto;
background-color: @map-tools-bg-color;
Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/less/searchmobile.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
top: @app-margin + @map-tools-size !important;
right: 0;
bottom: 0;
max-height: none;
}
}
}

0 comments on commit 6f02fab

Please sign in to comment.