Skip to content

Commit 03177c0

Browse files
Merge pull request #20676 from qchiujunhao/fix-invocation-header-24.2
[24.2] Fix invocation header
2 parents 5b73009 + f5bfa0a commit 03177c0

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

client/src/components/Workflow/WorkflowAnnotation.vue

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ const owned = computed(() => {
4141
});
4242
4343
const description = computed(() => {
44-
if (workflow.value?.annotation) {
45-
return workflow.value.annotation?.trim();
46-
} else {
47-
return null;
48-
}
44+
return workflow.value?.annotation?.trim() || null;
4945
});
5046
5147
const timeElapsed = computed(() => {
@@ -70,7 +66,11 @@ const workflowTags = computed(() => {
7066
</i>
7167
<span v-if="invocationUpdateTime" class="d-flex flex-gapx-1 align-items-center">
7268
<FontAwesomeIcon :icon="faHdd" />History:
73-
<SwitchToHistoryLink :history-id="props.historyId" />
69+
70+
<span class="history-link-wrapper">
71+
<SwitchToHistoryLink :history-id="props.historyId" />
72+
</span>
73+
7474
<BBadge
7575
v-if="useHistoryStore().currentHistoryId !== props.historyId"
7676
v-b-tooltip.hover.noninteractive
@@ -97,3 +97,18 @@ const workflowTags = computed(() => {
9797
</div>
9898
</div>
9999
</template>
100+
101+
<style scoped lang="scss">
102+
.history-link-wrapper {
103+
max-width: 300px;
104+
105+
&:deep(.history-link) {
106+
a {
107+
overflow: hidden;
108+
white-space: nowrap;
109+
text-overflow: ellipsis;
110+
display: block;
111+
}
112+
}
113+
}
114+
</style>

0 commit comments

Comments
 (0)