Skip to content

Commit

Permalink
fix word wrapping in invocation panel list items
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Nov 13, 2024
1 parent 1b11742 commit 1e0cdab
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 1e0cdab

Please sign in to comment.