Sequence: Alt/Else Long Label With Uninvolved Participant

A long alt/else condition label next to a participant with no messages inside that block — the block widens to fit the label without cutting off that participant's own lifeline, which matters once a real condition description runs longer than a word or two.

sequence-alt-else-long-label-with-uninvolved-participant.mmd
sequenceDiagram
  participant A
  participant B
  participant C
  alt credentials valid
    A->>B: x
  else credentials rejected
    A->>B: y
  end
Output
Sequence diagram, Zombie Mermaid alt [credentials valid] [credentials rejected] x y A B C

More Sequence diagram examples