Skip to content

Commit

Permalink
Bug 1424259 - Fix alignment of extension sidebar action icons r=mixed…
Browse files Browse the repository at this point in the history
…puppy

MozReview-Commit-ID: 4RQv30imV3B

--HG--
extra : rebase_source : 03a60c98f7d64a4143c4ea76378bc95f35d3106c
  • Loading branch information
mstriemer committed Jan 12, 2018
1 parent 93f5b81 commit 5ee733c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions browser/base/content/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ toolbarpaletteitem {
}

.webextension-menuitem {
list-style-image: var(--webextension-menuitem-image, inherit);
list-style-image: var(--webextension-menuitem-image, inherit) !important;
}
}

Expand Down Expand Up @@ -394,7 +394,7 @@ toolbarpaletteitem {
}

.webextension-menuitem {
list-style-image: var(--webextension-menuitem-image-2x, inherit);
list-style-image: var(--webextension-menuitem-image-2x, inherit) !important;
}
}

Expand Down
4 changes: 2 additions & 2 deletions browser/base/content/browser.xul
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@
<observes element="viewTabsSidebar" attribute="checked"/>
</toolbarbutton>
<toolbarseparator/>
<vbox id="sidebar-extensions"></vbox>
<toolbarseparator/>
<!-- Extension toolbarbuttons go here. -->
<toolbarseparator id="sidebar-extensions-separator"/>
<toolbarbutton id="sidebar-reverse-position"
class="subviewbutton"
oncommand="SidebarUI.reversePosition()"/>
Expand Down
3 changes: 2 additions & 1 deletion browser/components/extensions/ext-sidebarAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ this.sidebarAction = class extends ExtensionAPI {

document.getElementById("mainBroadcasterSet").appendChild(broadcaster);
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;
}
Expand Down
2 changes: 1 addition & 1 deletion browser/themes/shared/sidebar.inc.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
min-width: 190px;
}

#sidebar-extensions:empty + toolbarseparator {
toolbarseparator + #sidebar-extensions-separator {
display: none;
}

Expand Down

0 comments on commit 5ee733c

Please sign in to comment.