Sequence: How to set equal spacing for actor and database lifelines in v1.2026.3+ ?

0 votes
asked 5 hours ago in Question / help by Esperito (260 points)

Hello,

I have a question about setting equal spacing between lifelines in sequence diagrams using the new CSS style syntax.

Up to v1.2026.2, we could achieve equal spacing between participants using:
skinparam ParticipantPadding 40

In v1.2026.3 and later, we can achieve the same result using:

<style>
sequenceDiagram {
  participant {
    Margin 0 40
  }
}
</style>

Is there a similar way to specify the spacing specifically for other classifiers, such as actor or databaselifelines, to keep them equally spaced?

Thank you for your help and for maintaining this wonderful tool.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...