fix(ui): align branch lane ends and route the unmatched switch path down its own lane

This commit is contained in:
sam committed 2026-10-18 23:45:25 +11:00
1 parent 0d6d5e7dd3
commit 168ddde0dd
4 files changed
+32 -28

No files matched your search

+1 -4
View File
@@ -5,7 +5,7 @@ import { BaseEdge, EdgeLabelRenderer, getSmoothStepPath, type EdgeProps } from "
import AddStepMenu from "./AddStepMenu.vue";
import type { StepPath } from "./workflow-edit";
const props = defineProps<EdgeProps<{ trace?: string; otherwise?: boolean; insertAfter?: StepPath; types: string[]; editable: boolean; onInsert: (after: StepPath, type: string) => void }>>();
const props = defineProps<EdgeProps<{ trace?: string; insertAfter?: StepPath; types: string[]; editable: boolean; onInsert: (after: StepPath, type: string) => void }>>();
const path = computed(() =>
getSmoothStepPath({
@@ -22,9 +22,6 @@ const path = computed(() =>
<template>
<BaseEdge :id="id" :path="path[0]" :class="['workflow-flow-edge', data?.trace && `trace-${data.trace}`]" />
<EdgeLabelRenderer v-if="data?.otherwise">
<div class="absolute text-[11px] text-fg-subtle" :style="{ transform: `translate(8px, -50%) translate(${sourceX}px, ${sourceY}px)` }">otherwise</div>
</EdgeLabelRenderer>
<EdgeLabelRenderer v-if="data?.editable && data.insertAfter !== undefined">
<div
class="workflow-insert absolute p-3 opacity-0 transition-opacity focus-within:opacity-100 hover:opacity-100 has-[[data-state=open]]:opacity-100"