Skip to content

Commit 10a8e97

Browse files
committed
wc: fix displaying filter items in filters-toolbar component #TASK-8076
1 parent c992662 commit 10a8e97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/webcomponents/commons/filters-toolbar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,14 +621,14 @@ export default class FiltersToolbar extends LitElement {
621621
<a class="dropdown-item cursor-pointer ${isActive ? "active" : ""}" @click="${() => this.onApplyQuery(item.query)}">
622622
<div class="d-flex align-items-center">
623623
<div class="flex-grow-1">
624-
<div class="text-truncate">
625-
${item.id} ${item.latest ? html` <b>(latest)</b>` : nothing}
624+
<div class="text-truncate" title="${item.id}">
625+
${UtilsNew.substring(item.id, 20)} ${item.latest ? html` <b>(latest)</b>` : nothing}
626626
</div>
627627
<div class="small opacity-50">
628628
${filterParams?.length > 0 ? html`
629629
${filterParams.slice(0, 2).map(key => html`
630630
<div class="" title="${item.query[key]}">
631-
<b>${key}</b>: ${UtilsNew.substring(item.query[key], Math.max(0, 35 - key.length))}
631+
<b>${key}</b>: ${UtilsNew.substring(item.query[key], Math.max(0, 25 - key.length))}
632632
</div>
633633
`)}
634634
` : html`Empty query.`}

0 commit comments

Comments
 (0)