diff --git a/apps/client/src/widgets/quick_search.ts b/apps/client/src/widgets/quick_search.ts index 74124aff4..95728b99e 100644 --- a/apps/client/src/widgets/quick_search.ts +++ b/apps/client/src/widgets/quick_search.ts @@ -86,10 +86,6 @@ const TPL = /*html*/` font-size: .75em; } - .quick-search .search-result-attributes br { - display: none; - } - .quick-search .search-result-content { margin-top: 8px; padding: 8px; @@ -287,7 +283,9 @@ export default class QuickSearchWidget extends BasicWidget { // Add attribute snippet (tags/attributes) below the title if available if (result.highlightedAttributeSnippet) { - itemHtml += `
${result.highlightedAttributeSnippet}
`; + // Replace
with a blank space to join the atributes on the same single line + const snippet = (result.highlightedAttributeSnippet as string).replace(//g, " "); + itemHtml += `
${snippet}
`; } // Add content snippet below the attributes if available @@ -295,8 +293,6 @@ export default class QuickSearchWidget extends BasicWidget { itemHtml += `
${result.highlightedContentSnippet}
`; } - console.log(result); - itemHtml += ``; $item.html(itemHtml);