Tentative fix for #76

This commit is contained in:
Simon Cambier
2022-07-05 18:52:26 +02:00
parent 576ee10d5f
commit b2efcb19d8

View File

@@ -17,6 +17,7 @@ $: title = settings.showShortName ? note.basename : note.path
</script> </script>
<ResultItemContainer id={note.path} {selected} on:mousemove on:click {glyph}> <ResultItemContainer id={note.path} {selected} on:mousemove on:click {glyph}>
<div>
<span class="omnisearch-result__title"> <span class="omnisearch-result__title">
{@html title.replace(reg, highlighter)} {@html title.replace(reg, highlighter)}
</span> </span>
@@ -26,6 +27,7 @@ $: title = settings.showShortName ? note.basename : note.path
{matches.length}&nbsp;{matches.length > 1 ? "matches" : "match"} {matches.length}&nbsp;{matches.length > 1 ? "matches" : "match"}
</span> </span>
{/if} {/if}
</div>
<div class="omnisearch-result__body"> <div class="omnisearch-result__body">
{@html cleanedContent.replace(reg, highlighter)} {@html cleanedContent.replace(reg, highlighter)}
</div> </div>