Bug 1400219 - Align permission status menulists in the permission dialog with the header and adjust the menulist margin. r=johannh, a=ritu
authorPrathiksha <prathikshaprasadsuman@gmail.com>
Fri, 08 Sep 2017 19:11:02 +0530
changeset 677776 5fba16e588e6616d20ae3ba638bd42a50a4e2f43
parent 673673 c7b47e1282c2b96e8d440da60784e6dbae234770
child 677777 092cc740306c0817739e9b64a8edef56cfa29168
push id83805
push userbmo:rail@mozilla.com
push dateTue, 10 Oct 2017 19:01:30 +0000
reviewersjohannh, ritu
bugs1400219
milestone57.0
Bug 1400219 - Align permission status menulists in the permission dialog with the header and adjust the menulist margin. r=johannh, a=ritu MozReview-Commit-ID: LaY1YaNZydg
browser/components/preferences/sitePermissions.css
browser/components/preferences/sitePermissions.js
--- a/browser/components/preferences/sitePermissions.css
+++ b/browser/components/preferences/sitePermissions.css
@@ -11,8 +11,13 @@
   min-height: 18em;
 }
 
 #siteCol,
 #statusCol,
 #permissionsBox > richlistitem {
   min-height: 35px;
 }
+
+.website-status {
+  margin: 1px;
+  margin-inline-end: 5px;
+}
--- a/browser/components/preferences/sitePermissions.js
+++ b/browser/components/preferences/sitePermissions.js
@@ -148,16 +148,17 @@ var gSitePermissionsManager = {
     hbox.setAttribute("class", "website-name");
     hbox.setAttribute("flex", "3");
     hbox.appendChild(website);
 
     let menulist = document.createElement("menulist");
     let menupopup = document.createElement("menupopup");
     menulist.setAttribute("flex", "1");
     menulist.setAttribute("width", "50");
+    menulist.setAttribute("class", "website-status");
     menulist.appendChild(menupopup);
     let states = SitePermissions.getAvailableStates(permission.type);
     for (let state of states) {
       if (state == SitePermissions.UNKNOWN)
         continue;
       let m = document.createElement("menuitem");
       m.setAttribute("label", this._getCapabilityString(state));
       m.setAttribute("value", state);