From 4b59dced912fb9b50ff041c67f0f72cbbad56b6c Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 1 Sep 2021 14:14:51 +0200 Subject: add styling to settings install(import) dialog --- html/options_main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'html/options_main.js') diff --git a/html/options_main.js b/html/options_main.js index 03505a5..e08bdb9 100644 --- a/html/options_main.js +++ b/html/options_main.js @@ -37,7 +37,9 @@ function list_set_scrollbar(list_elem) const op = ((list_elem.children.length === 1 && list_elem.children[0].classList.contains("hide")) || list_elem.children.length < 1) ? "remove" : "add"; - list_elem.parentElement.parentElement.classList[op]("always_scrollbar"); + while (!list_elem.classList.contains("table_wrapper")) + list_elem = list_elem.parentElement; + list_elem.classList[op]("always_scrollbar"); } function item_li_id(prefix, item) @@ -632,6 +634,8 @@ async function initialize_import_facility() import_frame = await get_import_frame(); import_frame.onclose = hide_import_window; + import_frame.style_table("has_bottom_line", "always_scrollbar", + "has_upper_line", "tight_table"); } /* -- cgit v1.2.3