From 4d07a1aab6c9ac3fc5b3af377f09017fd793889a Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 27 Aug 2025 03:19:07 +0300 Subject: [PATCH] client/quick search results: add a whitespace between attributes --- apps/client/src/widgets/quick_search.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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);