зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1424259 - Fix alignment of extension sidebar action icons r=mixedpuppy
MozReview-Commit-ID: 4RQv30imV3B --HG-- extra : rebase_source : 03a60c98f7d64a4143c4ea76378bc95f35d3106c
This commit is contained in:
Родитель
93f5b81085
Коммит
5ee733c0c6
|
@ -362,7 +362,7 @@ toolbarpaletteitem {
|
||||||
}
|
}
|
||||||
|
|
||||||
.webextension-menuitem {
|
.webextension-menuitem {
|
||||||
list-style-image: var(--webextension-menuitem-image, inherit);
|
list-style-image: var(--webextension-menuitem-image, inherit) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -394,7 +394,7 @@ toolbarpaletteitem {
|
||||||
}
|
}
|
||||||
|
|
||||||
.webextension-menuitem {
|
.webextension-menuitem {
|
||||||
list-style-image: var(--webextension-menuitem-image-2x, inherit);
|
list-style-image: var(--webextension-menuitem-image-2x, inherit) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -296,8 +296,8 @@
|
||||||
<observes element="viewTabsSidebar" attribute="checked"/>
|
<observes element="viewTabsSidebar" attribute="checked"/>
|
||||||
</toolbarbutton>
|
</toolbarbutton>
|
||||||
<toolbarseparator/>
|
<toolbarseparator/>
|
||||||
<vbox id="sidebar-extensions"></vbox>
|
<!-- Extension toolbarbuttons go here. -->
|
||||||
<toolbarseparator/>
|
<toolbarseparator id="sidebar-extensions-separator"/>
|
||||||
<toolbarbutton id="sidebar-reverse-position"
|
<toolbarbutton id="sidebar-reverse-position"
|
||||||
class="subviewbutton"
|
class="subviewbutton"
|
||||||
oncommand="SidebarUI.reversePosition()"/>
|
oncommand="SidebarUI.reversePosition()"/>
|
||||||
|
|
|
@ -189,7 +189,8 @@ this.sidebarAction = class extends ExtensionAPI {
|
||||||
|
|
||||||
document.getElementById("mainBroadcasterSet").appendChild(broadcaster);
|
document.getElementById("mainBroadcasterSet").appendChild(broadcaster);
|
||||||
document.getElementById("viewSidebarMenu").appendChild(menuitem);
|
document.getElementById("viewSidebarMenu").appendChild(menuitem);
|
||||||
document.getElementById("sidebar-extensions").appendChild(toolbarbutton);
|
let separator = document.getElementById("sidebar-extensions-separator");
|
||||||
|
separator.parentNode.insertBefore(toolbarbutton, separator);
|
||||||
|
|
||||||
return menuitem;
|
return menuitem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
min-width: 190px;
|
min-width: 190px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar-extensions:empty + toolbarseparator {
|
toolbarseparator + #sidebar-extensions-separator {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче