Skip to content

Commit 5744e5d

Browse files
committed
Only transform when rendering participant.
Transforming the line moves the line for 0.5px.
1 parent 9947bb0 commit 5744e5d

File tree

1 file changed

+2
-2
lines changed
  • src/components/DiagramFrame/SeqDiagram/LifeLineLayer

1 file changed

+2
-2
lines changed

src/components/DiagramFrame/SeqDiagram/LifeLineLayer/LifeLine.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<div
33
:id="entity.name"
44
:entity-type="entity.type?.toLowerCase()"
5-
class="lifeline absolute flex flex-col mx-2 transform -translate-x-1/2 h-full"
5+
class="lifeline absolute flex flex-col mx-2 h-full"
6+
:class="{ 'transform -translate-x-1/2': renderParticipants }"
67
:style="{ paddingTop: top + 'px', left: left + 'px' }"
78
>
8-
<div v-show="debug">{{ centerOf(entity.name) }}</div>
99
<participant v-if="renderParticipants" :entity="entity" :offsetTop="top" />
1010
<div v-if="renderLifeLine" class="line w0 mx-auto flex-grow w-px"></div>
1111
</div>

0 commit comments

Comments
 (0)