parent
d37b113d0d
commit
d02d93f476
|
@ -213,9 +213,10 @@
|
||||||
<button id="popup-manage-button" i18n-text="openManage"
|
<button id="popup-manage-button" i18n-text="openManage"
|
||||||
data-href="manage.html" i18n-title="popupManageTooltip"></button>
|
data-href="manage.html" i18n-title="popupManageTooltip"></button>
|
||||||
<button id="popup-options-button" i18n-text="openOptionsPopup"></button>
|
<button id="popup-options-button" i18n-text="openOptionsPopup"></button>
|
||||||
<button id="popup-shortcuts-button" class="chromium-only"
|
<button id="popup-wiki-button"
|
||||||
i18n-text="shortcuts"
|
i18n-text="linkStylusWiki"
|
||||||
i18n-title="shortcutsNote"></button>
|
i18n-title="linkGetHelp"
|
||||||
|
data-href="https://github.com/openstyles/stylus/wiki"></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -453,7 +453,7 @@ body.blocked .actions > .main-controls {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
/* several languages have labels of wildly different lengths so we try to maintain the proportion */
|
/* several languages have labels of wildly different lengths so we try to maintain the proportion */
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
min-width: 4em;
|
min-width: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#popup-options button:last-child {
|
#popup-options button:last-child {
|
||||||
|
|
|
@ -96,16 +96,7 @@ function initPopup() {
|
||||||
window.close();
|
window.close();
|
||||||
};
|
};
|
||||||
|
|
||||||
const shortcutsButton = $('#popup-shortcuts-button');
|
$('#popup-wiki-button').onclick = handleEvent.openURLandHide;
|
||||||
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!prefs.get('popup.stylesFirst')) {
|
if (!prefs.get('popup.stylesFirst')) {
|
||||||
document.body.insertBefore(
|
document.body.insertBefore(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user