[autocomplete] min-width rather than wrapping

This commit is contained in:
Shish 2023-12-29 11:37:44 +00:00
parent 4c5af15a88
commit ef5f1f8599
2 changed files with 1 additions and 2 deletions

View file

@ -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';
}

View file

@ -12,7 +12,6 @@
}
.autocomplete_completions LI {
padding: 0.15em;
overflow-wrap: anywhere;
}
.autocomplete_completions .selected {
background-color: #ccc;