|
@@ -124,7 +124,7 @@ proc `$`*(badge: BadgeRef): string =
|
|
|
|
|
|
main.add newXMLTree(
|
|
|
"rect", [], {
|
|
|
- "x": "0", "y": "0", "width": $(labelw - len(badge.label)),
|
|
|
+ "x": "0", "y": "0", "width": $(labelw),
|
|
|
"height": $badge.height, "rx": radius, "ry": radius,
|
|
|
"style": "fill:" & badge.label_color
|
|
|
}.toXMLAttributes)
|