Skip to content

Commit

Permalink
fix: search result not hidden in legend search
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyblasta committed Feb 1, 2023
1 parent a61d3e3 commit f4ee7ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion scss/externs/_awesomplete.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
width: 100%;
}

.awesomplete.black {
display: flex;
flex-direction: row;
flex-grow: 1;
position: fixed;
min-width: 180px;
}

.awesomplete > input {
display: block;
}
Expand All @@ -39,7 +47,7 @@
left: 0px;
list-style: none;
margin: 0;
min-width: 100%;
min-width: 180px;
padding: 0;
position: absolute;
top: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/controls/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ const Legend = function Legend(options = {}) {

const layerSearchInput = Input({
cls: 'o-search-layer-field placeholder-text-smaller smaller',
style: { height: '1.5rem', margin: 0, width: '100%' },
style: { height: '1.5rem', margin: 0, width: '180px' },
placeholderText: searchLayersPlaceholderText,
value: ''
});
Expand Down

0 comments on commit f4ee7ef

Please sign in to comment.