Tentative fix for #76
This commit is contained in:
@@ -17,15 +17,17 @@ $: 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}>
|
||||||
<span class="omnisearch-result__title">
|
<div>
|
||||||
{@html title.replace(reg, highlighter)}
|
<span class="omnisearch-result__title">
|
||||||
</span>
|
{@html title.replace(reg, highlighter)}
|
||||||
|
</span>
|
||||||
|
|
||||||
{#if matches.length > 0}
|
{#if matches.length > 0}
|
||||||
<span class="omnisearch-result__counter">
|
<span class="omnisearch-result__counter">
|
||||||
{matches.length} {matches.length > 1 ? "matches" : "match"}
|
{matches.length} {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>
|
||||||
|
|||||||
Reference in New Issue
Block a user