diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-09-01 11:45:06 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-09-01 11:45:06 +0200 |
commit | 453ba03962ececcdff9264bea606b7bc488c1803 (patch) | |
tree | 169d81bb94e2c2849d1756c65ad3a528a9d944db /html/options_main.js | |
parent | 544c6df3ab1e331c6b6779b76ad33180a06b0b4d (diff) | |
download | browser-extension-453ba03962ececcdff9264bea606b7bc488c1803.tar.gz browser-extension-453ba03962ececcdff9264bea606b7bc488c1803.zip |
add styling for popup page\n\nThis does not include styling for contents of the import dialog
Diffstat (limited to 'html/options_main.js')
-rw-r--r-- | html/options_main.js | 8 |
1 files changed, 6 insertions, 2 deletions
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); } |