Bug 1389713 - Push the badge a little closer to the button in compact mode to avoid overflow. r=dao, ui-r=abenson draft
authorBlake Winton <bwinton@latte.ca>
Thu, 31 Aug 2017 14:57:37 -0400
changeset 657697 345b17f0db03afbe6de35e52661e8a89ba5571b8
parent 656655 fb22415719a9d971a2646fa2d1b74e134ca00c3d
child 729498 bfda1b56b77d016707f6a53171a2cc176ed56a7b
push id77599
push userbmo:bwinton@mozilla.com
push dateFri, 01 Sep 2017 20:48:17 +0000
reviewersdao, abenson
bugs1389713
milestone57.0a1
Bug 1389713 - Push the badge a little closer to the button in compact mode to avoid overflow. r=dao, ui-r=abenson MozReview-Commit-ID: GYnBepeOIf0
browser/themes/shared/toolbarbuttons.inc.css
--- a/browser/themes/shared/toolbarbuttons.inc.css
+++ b/browser/themes/shared/toolbarbuttons.inc.css
@@ -285,8 +285,14 @@ toolbarbutton.bookmark-item {
 /* Force the display of the label for bookmarks */
 .bookmark-item > .toolbarbutton-text {
   display: -moz-box !important;
 }
 
 #PlacesToolbarItems > .bookmark-item > .toolbarbutton-icon[label]:not([label=""]) {
   margin-inline-end: 4px;
 }
+
+/* Remove a pixel of margin on the end so that the badge doesn't
+ * overflow the toolbar and push the button into the overflow menu. */
+:root[uidensity=compact] .toolbarbutton-badge {
+  margin-inline-end: -7px !important;
+}