parent
d37b113d0d
commit
d02d93f476
|
@ -213,9 +213,10 @@
|
|||
<button id="popup-manage-button" i18n-text="openManage"
|
||||
data-href="manage.html" i18n-title="popupManageTooltip"></button>
|
||||
<button id="popup-options-button" i18n-text="openOptionsPopup"></button>
|
||||
<button id="popup-shortcuts-button" class="chromium-only"
|
||||
i18n-text="shortcuts"
|
||||
i18n-title="shortcutsNote"></button>
|
||||
<button id="popup-wiki-button"
|
||||
i18n-text="linkStylusWiki"
|
||||
i18n-title="linkGetHelp"
|
||||
data-href="https://github.com/openstyles/stylus/wiki"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user