From e5764acb557d782ddc5187ec0d3b11778117fa2a Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 28 Jan 2024 06:55:42 +0200 Subject: [PATCH] scrollable urlbar popup: make urlbar rows have position:relative This lets the type icon be correctly aligned to the row when scrolling This patch also removes now useless namespace selectors --- chrome/scrollable_urlbar_popup.css | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/chrome/scrollable_urlbar_popup.css b/chrome/scrollable_urlbar_popup.css index 7616582..141eb51 100644 --- a/chrome/scrollable_urlbar_popup.css +++ b/chrome/scrollable_urlbar_popup.css @@ -4,10 +4,12 @@ See the above repository for updates as well as full license text. */ /* Makes the urlbar dropdown scrollable */ /* Modify the pref browser.urlbar.maxRichResults to set how many results should be shown */ -/* This must NOT be loaded in xul namespace */ -/* Either load this file using @import or otherwise make sure that the namespace is correctly set */ - -@namespace html url("http://www.w3.org/1999/xhtml"); - -html|div#urlbarView-results, -html|div#urlbar-results{ max-height: 400px; overflow-y: auto; scrollbar-color: var(--urlbar-separator-color,currentColor) transparent; scrollbar-width: thin } \ No newline at end of file +#urlbar-results{ + max-height: 400px; /* Maximum height for the list, modify as needed */ + overflow-y: auto; + scrollbar-color: var(--urlbar-separator-color,currentColor) transparent; + scrollbar-width: thin +} +.urlbarView-no-wrap{ + position: relative; +} \ No newline at end of file