Skip to content

Commit b25d881

Browse files
authored
Merge pull request #19 from LinuxinaBit/patch-3
Remove background color based padding
2 parents 32644d9 + 3008406 commit b25d881

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

js/micron-parser.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ class MicronParser {
342342
outerDiv.style.backgroundColor = this.colorToCss(state.bg_color);
343343
outerDiv.style.width = "100%";
344344
outerDiv.style.display = "block";
345-
outerDiv.style.padding = "0 2px";
346345
outerDiv.appendChild(container);
347346
return [outerDiv];
348347
}
@@ -429,7 +428,6 @@ class MicronParser {
429428
if (currentSpan) {
430429
if (currentStyle && currentStyle.bg !== this.DEFAULT_BG) {
431430
currentSpan.style.display = "inline-block";
432-
currentSpan.style.padding = "0 2px";
433431
}
434432
container.appendChild(currentSpan);
435433
currentSpan = null;
@@ -575,7 +573,6 @@ applyStyleToElement(el, style) {
575573
}
576574
if (bgColor && bgColor !== "default") {
577575
el.style.backgroundColor = bgColor;
578-
el.style.padding = "0 2px";
579576
el.style.display = "inline-block";
580577
}
581578

@@ -937,4 +934,4 @@ applyStyleToElement(el, style) {
937934
}
938935
}
939936

940-
export default MicronParser;
937+
export default MicronParser;

0 commit comments

Comments
 (0)