Skip to content

Commit

Permalink
Merge pull request #19141 from ahmedhamidawan/invocation_panel_word_wrap
Browse files Browse the repository at this point in the history
Fix word wrapping in invocation panel list items
  • Loading branch information
mvdbeek authored Nov 15, 2024
2 parents e97018f + 1e0cdab commit ef6d1bb
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions client/src/components/Workflow/Invocation/InvocationScrollList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,14 @@ function workflowName(workflowId: string) {
@click="() => cardClicked(invocation)">
<div class="overflow-auto w-100">
<Heading bold size="text" icon="fa-sitemap">
<span class="truncate-3-lines">{{ workflowName(invocation.workflow_id) }}</span>
<span class="truncate-n-lines three-lines">
{{ workflowName(invocation.workflow_id) }}
</span>
</Heading>
<Heading size="text" icon="fa-hdd">
<small class="text-muted">{{ historyName(invocation.history_id) }}</small>
<small class="text-muted truncate-n-lines two-lines">
{{ historyName(invocation.history_id) }}
</small>
</Heading>
<div class="d-flex justify-content-between">
<BBadge v-b-tooltip.noninteractive.hover pill>
Expand Down Expand Up @@ -257,12 +261,19 @@ function workflowName(workflowId: string) {
</template>

<style scoped lang="scss">
@import "theme/blue.scss";
.truncate-3-lines {
.truncate-n-lines {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
word-break: break-word;
overflow-wrap: break-word;
&.three-lines {
-webkit-line-clamp: 3;
line-clamp: 3;
}
&.two-lines {
-webkit-line-clamp: 2;
line-clamp: 2;
}
}
</style>

0 comments on commit ef6d1bb

Please sign in to comment.