Skip to content

Commit 1114da4

Browse files
committed
fix: hide tail line at end of build flow
1 parent 0b85c3c commit 1114da4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

packages/devtools/src/app/components/flowmap/Expandable.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<script setup lang="ts">
2-
defineProps<{
2+
withDefaults(defineProps<{
33
expandable?: boolean
44
classRootNode?: string
55
activeStart?: boolean
66
activeEnd?: boolean
7-
}>()
7+
showTail?: boolean
8+
}>(), {
9+
showTail: true,
10+
})
811
912
const expanded = defineModel<boolean>('expanded', { required: false, default: true })
1013
</script>
@@ -43,9 +46,10 @@ const expanded = defineModel<boolean>('expanded', { required: false, default: tr
4346
<slot name="container" />
4447
</div>
4548
<svg
49+
v-if="showTail"
4650
ml-1em w-27px h-30px
47-
style="transform: scaleX(-1)"
48-
viewBox="0 0 27 30" fill="none" xmlns="http://www.w3.org/2000/svg"
51+
style="transform: scaleX(-1)" viewBox="0 0 27 30" fill="none"
52+
xmlns="http://www.w3.org/2000/svg"
4953
:class="activeEnd ? 'fg-flow-line-active' : 'fg-flow-line'"
5054
>
5155
<g>

packages/devtools/src/app/components/flowmap/ModuleFlow.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ const codeDisplay = computed(() => {
340340
:class-root-node="info.assets.length === 0 ? 'border-dashed' : ''"
341341
:active-start="isSelectedAncestor(info.assets[0])"
342342
:active-end="isSelectedAncestor(info.assets.at(-1))"
343+
:show-tail="false"
343344
pl6 pt4
344345
>
345346
<template #node>

0 commit comments

Comments
 (0)