feat(ui): lanes for parallel and switch steps on the workflow canvas
This commit is contained in:
1 parent
79d7f2fa68
commit
522ced45ff
14 files changed
+264
-138
No files matched your search
@@ -9,7 +9,6 @@ defineProps<{ data: { branch?: string; types: string[]; editable: boolean; onIns
|
||||
<template>
|
||||
<div class="relative flex w-8 justify-center">
|
||||
<Handle type="target" :position="Position.Top" class="!opacity-0" />
|
||||
<span v-if="data.branch" class="absolute bottom-full mb-1 whitespace-nowrap text-xs text-fg-subtle">{{ data.branch }}</span>
|
||||
<AddStepMenu v-if="data.editable" :types="data.types" :label="data.branch ? `Add a step to ${data.branch}` : 'Add a step at the end'" @pick="data.onInsert" />
|
||||
<Handle v-if="data.branch" type="source" :position="Position.Bottom" class="!opacity-0" />
|
||||
<span v-else class="size-2 rounded-full bg-border" aria-hidden="true" />
|
||||
|
||||
Reference in new issue
Block a user