From e75eab979867d4813da6abcf527be50a509456e9 Mon Sep 17 00:00:00 2001 From: CompileNix Date: Sun, 10 Mar 2024 20:38:49 +0100 Subject: [PATCH] Re-order the popup menu items to improve UI / UX As discussed in #899 --- src/pages/popup/popup.pug | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/pages/popup/popup.pug b/src/pages/popup/popup.pug index 7e88970..d7ebdd4 100644 --- a/src/pages/popup/popup.pug +++ b/src/pages/popup/popup.pug @@ -6,16 +6,6 @@ html(lang="en") link(href="../stylesheets/styles.css" rel="stylesheet") link(href="./style.css" rel="stylesheet") body(dir="auto") - div(id="current_site") - include /src/pages/popup/switches - div(id="current_site_divider" style="display: none") - hr - - div(id="all_sites") - include /src/pages/popup/switches - - hr - div(class="block" id="change_instance_div" style="display: none") button(class="title button bottom-button" id="change_instance") label(data-localise="__MSG_switchInstance__") Switch Instance @@ -40,6 +30,18 @@ html(lang="en") svg(xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" preserveAspectRatio="xMinYMin meet" fill="currentColor") path(d="M 17,20 V 11 Q 17,10.175 16.412,9.587 15.825,9 15,9 H 6.8 L 8.4,7.4 7,6 3,10 7,14 8.4,12.6 6.8,11 H 15 v 9 z" id="path2") + hr + + div(id="current_site") + include /src/pages/popup/switches + div(id="current_site_divider" style="display: none") + hr + + div(id="all_sites") + include /src/pages/popup/switches + + hr + div(class="block") a(class="title button bottom-button" id="more-options") label(data-localise="__MSG_settings__") Settings @@ -48,4 +50,4 @@ html(lang="en") div(class="space") script(type="module" src="../options/init.js") - script(type="module" src="./popup.js") \ No newline at end of file + script(type="module" src="./popup.js")