From: Andrew Lorimer Date: Mon, 19 Aug 2019 01:57:04 +0000 (+1000) Subject: fix options loading bug & drag handle alignment X-Git-Url: https://git.lorimer.id.au/newtab.git/diff_plain/ef8755f39d9bd93cdc8f414e515eef91fc43df9e fix options loading bug & drag handle alignment --- diff --git a/options.js b/options.js index 50598de..31ff156 100644 --- a/options.js +++ b/options.js @@ -26,7 +26,7 @@ function restore_options() { document.getElementById('fg').value = items["fgvalue"]; document.getElementById('hr').value = items["hrvalue"]; }); + document.getElementById('save').addEventListener('click', save_options); } document.addEventListener('DOMContentLoaded', restore_options); -document.getElementById('save').addEventListener('click', save_options); diff --git a/style.css b/style.css index 3e56646..c29e55d 100644 --- a/style.css +++ b/style.css @@ -27,6 +27,7 @@ body { flex-direction: row; display: -webkit-flex; -webkit-flex-direction: row; + min-height: 283px; } ul { @@ -65,7 +66,7 @@ input.colname { height: 19px; margin: 14px 0 6px 0; border: 2px var(--hover-bg) dashed; - background-color: var(--default-bg); + background-color: var(inherit); color: inherit; font-family: inherit; } @@ -210,7 +211,7 @@ span.grip { content: '....'; position: relative; right: 20px; - top: 35px; + top: 36px; width: 10px; height: 20px; display: none;