зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1690340 - Part 5: Remove the menu separators from the developer tools menu. r=jdescottes
This removes the menu separators frmo the developer tools menu to conform to the proton design. We can safely remove the "devToolsEndSeparator" separator since it is no longer used to append the "Work Offline" that is removed in Part 4. We change the anchor element to be the "menu_devtools_remotedebugging" menu item with the removal oof the "menu_devtools_separator" separator. Differential Revision: https://phabricator.services.mozilla.com/D104904
This commit is contained in:
Родитель
23021a139b
Коммит
dd9a6ddc00
|
@ -158,7 +158,7 @@ function insertToolMenuElements(doc, toolDefinition, prevDef) {
|
|||
const menuitem = doc.getElementById("menuitem_" + prevDef.id);
|
||||
ref = menuitem?.nextSibling ? menuitem.nextSibling : null;
|
||||
} else {
|
||||
ref = doc.getElementById("menu_devtools_separator");
|
||||
ref = doc.getElementById("menu_devtools_remotedebugging");
|
||||
}
|
||||
|
||||
if (ref) {
|
||||
|
@ -215,7 +215,7 @@ function addAllToolsToMenu(doc) {
|
|||
fragMenuItems.appendChild(elements.menuitem);
|
||||
}
|
||||
|
||||
const mps = doc.getElementById("menu_devtools_separator");
|
||||
const mps = doc.getElementById("menu_devtools_remotedebugging");
|
||||
if (mps) {
|
||||
mps.parentNode.insertBefore(fragMenuItems, mps);
|
||||
}
|
||||
|
|
|
@ -77,7 +77,6 @@ exports.menuitems = [
|
|||
keyId: "toggleToolbox",
|
||||
checkbox: true,
|
||||
},
|
||||
{ id: "menu_devtools_separator", separator: true },
|
||||
{
|
||||
id: "menu_devtools_remotedebugging",
|
||||
l10nKey: "devtoolsRemoteDebugging",
|
||||
|
@ -162,7 +161,6 @@ exports.menuitems = [
|
|||
},
|
||||
checkbox: true,
|
||||
},
|
||||
{ separator: true, id: "devToolsEndSeparator" },
|
||||
{
|
||||
id: "extensionsForDevelopers",
|
||||
l10nKey: "extensionsForDevelopersCmd",
|
||||
|
|
Загрузка…
Ссылка в новой задаче