[autocomplete] min-width rather than wrapping
This commit is contained in:
parent
4c5af15a88
commit
ef5f1f8599
2 changed files with 1 additions and 2 deletions
|
@ -123,7 +123,7 @@ function renderCompletions(element) {
|
|||
if(element.parentNode) {
|
||||
element.parentNode.insertBefore(completions_el, element.nextSibling);
|
||||
let br = element.getBoundingClientRect();
|
||||
completions_el.style.width = br.width + 'px';
|
||||
completions_el.style.minWidth = br.width + 'px';
|
||||
completions_el.style.left = window.scrollX + br.left + 'px';
|
||||
completions_el.style.top = window.scrollY + (br.top + br.height) + 'px';
|
||||
}
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
}
|
||||
.autocomplete_completions LI {
|
||||
padding: 0.15em;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.autocomplete_completions .selected {
|
||||
background-color: #ccc;
|
||||
|
|
Reference in a new issue