From 453ba03962ececcdff9264bea606b7bc488c1803 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 1 Sep 2021 11:45:06 +0200 Subject: add styling for popup page\n\nThis does not include styling for contents of the import dialog --- html/options_main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'html/options_main.js') diff --git a/html/options_main.js b/html/options_main.js index 8067fe7..03505a5 100644 --- a/html/options_main.js +++ b/html/options_main.js @@ -77,8 +77,12 @@ function add_li(prefix, item, at_the_end=false) break; } } - if (!li.parentElement) - ul.ul.appendChild(li); + if (!li.parentElement) { + if (ul.work_li !== ul.ul.lastElementChild) + ul.ul.appendChild(li); + else + ul.work_li.before(li); + } list_set_scrollbar(ul.ul); } -- cgit v1.2.3