diff --git a/banner.js b/banner.js index 2c1be6b..f548c12 100644 --- a/banner.js +++ b/banner.js @@ -150,6 +150,12 @@ iconWrap.style.setProperty('width', 'auto', 'important'); iconWrap.style.setProperty('max-height', 'none', 'important'); iconWrap.style.setProperty('max-width', 'none', 'important'); + // MUI's startIcon wrapper carries baked-in negative-left/positive-right + // margin (compensating for icon-font glyphs with their own internal + // padding); left over, it shifts the image into the container's left + // padding and stacks extra space on the right. Zero it so the + // container's own symmetric padding is the only thing spacing it. + iconWrap.style.setProperty('margin', '0', 'important'); } Array.prototype.forEach.call(container.childNodes, function (node) { if (node === logoImg) return;