From d02d93f47694e092f4709e60c70edf967b34ab57 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 2 Jul 2018 18:28:38 +0300 Subject: [PATCH] switch "Shortcuts" to "Wiki" in the popup fixes #409 --- popup.html | 7 ++++--- popup/popup.css | 2 +- popup/popup.js | 11 +---------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/popup.html b/popup.html index 7bb779eb..6c96fdfd 100644 --- a/popup.html +++ b/popup.html @@ -213,9 +213,10 @@ - + diff --git a/popup/popup.css b/popup/popup.css index 70234749..b0cc1663 100644 --- a/popup/popup.css +++ b/popup/popup.css @@ -453,7 +453,7 @@ body.blocked .actions > .main-controls { margin-right: 4px; /* several languages have labels of wildly different lengths so we try to maintain the proportion */ flex: 1 1 auto; - min-width: 4em; + min-width: 2em; } #popup-options button:last-child { diff --git a/popup/popup.js b/popup/popup.js index b16e8e42..5db20042 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -96,16 +96,7 @@ function initPopup() { window.close(); }; - const shortcutsButton = $('#popup-shortcuts-button'); - shortcutsButton.dataset.href = URLS.configureCommands; - shortcutsButton.onclick = handleEvent.openURLandHide; - - if (FIREFOX && 'update' in (chrome.commands || {})) { - shortcutsButton.classList.remove('chromium-only'); - shortcutsButton.onclick = () => API.optionsCustomizeHotkeys().then(window.close); - } else if (FIREFOX) { - shortcutsButton.remove(); - } + $('#popup-wiki-button').onclick = handleEvent.openURLandHide; if (!prefs.get('popup.stylesFirst')) { document.body.insertBefore(