Skip to content

Commit

Permalink
feat(draw): improve embedded label padding
Browse files Browse the repository at this point in the history
Ensures labels are attached reasonably to sub-process and transaction elements.
  • Loading branch information
nikku committed Feb 2, 2023
1 parent 3c8436c commit 4b2f3ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/draw/BpmnRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ export default function BpmnRenderer(
return renderLabel(parentGfx, semantic.name, {
box: element,
align: align,
padding: 5,
padding: 7,
style: {
fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor)
}
Expand Down Expand Up @@ -1640,7 +1640,7 @@ export default function BpmnRenderer(
renderLabel(parentGfx, text, {
box: element,
align: 'left-top',
padding: 5,
padding: 7,
style: {
fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor)
}
Expand Down

0 comments on commit 4b2f3ea

Please sign in to comment.