From ef5f1f8599f5d1eec9a198860658a0c5c0c029fa Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 29 Dec 2023 11:37:44 +0000 Subject: [PATCH] [autocomplete] min-width rather than wrapping --- ext/autocomplete/script.js | 2 +- ext/autocomplete/style.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/autocomplete/script.js b/ext/autocomplete/script.js index 582b24c2..fa5c6e77 100644 --- a/ext/autocomplete/script.js +++ b/ext/autocomplete/script.js @@ -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'; } diff --git a/ext/autocomplete/style.css b/ext/autocomplete/style.css index d8972424..e00f20f0 100644 --- a/ext/autocomplete/style.css +++ b/ext/autocomplete/style.css @@ -12,7 +12,6 @@ } .autocomplete_completions LI { padding: 0.15em; - overflow-wrap: anywhere; } .autocomplete_completions .selected { background-color: #ccc;