Bug 1494925 - Fix the squashed operator icons in chat. r=jorgk
authorRichard Marti <richard.marti@gmail.com>
Fri, 28 Sep 2018 13:12:25 +0200
changeset 33258 2727ba9a62aa40c4eef3eea56ea8ca21b7555900
parent 33257 ea04f95d5ceb814eeb22e47d72b5e3fa5418ce46
child 33259 cac40c2c829de36bcc009a375ba950753802dc90
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersjorgk
bugs1494925
Bug 1494925 - Fix the squashed operator icons in chat. r=jorgk
mail/components/im/content/imconversation.xml
--- a/mail/components/im/content/imconversation.xml
+++ b/mail/components/im/content/imconversation.xml
@@ -1047,17 +1047,17 @@
            else if (buddy.voiced)
              image = "voice";
            else if (buddy.founder)
              image = "founder";
          }
          if (image)
            aItem.firstChild.setAttribute("src", "chrome://messenger/skin/" + image + ".png");
          else
-           aItem.firstChild.removeAttribute("image");
+           aItem.firstChild.removeAttribute("src");
        ]]>
        </body>
      </method>
 
      <!-- compute color for a nick -->
      <method name="_computeColor">
        <parameter name="aName"/>
        <body>
@@ -1120,16 +1120,17 @@
          item.appendChild(image);
          item.appendChild(label);
          this.setBuddyAttributes(item);
 
          var color = this._computeColor(name);
          var style = "color: hsl(" + color + ", 100%, 40%);";
          item.colorStyle = style;
          item.setAttribute("style", style);
+         item.setAttribute("align", "center");
          if (!this._isBuddyActive(name))
            item.setAttribute("inactive", "true");
          item.color = color;
          this.buddies.set(name, item);
 
          // Insert item at the right position
          this.addNick(item);
        ]]>