From 9765f0540290861db666549743a9c8d48e8b3582 Mon Sep 17 00:00:00 2001 From: Liam Bigelow <40188355+bglw@users.noreply.github.com> Date: Thu, 16 Nov 2023 09:32:24 +1300 Subject: [PATCH] Revert highlight impl in the Default UI in prep of moving to JS API --- pagefind_ui/default/svelte/result.svelte | 291 +++++++++--------- .../default/svelte/result_with_subs.svelte | 24 +- 2 files changed, 156 insertions(+), 159 deletions(-) diff --git a/pagefind_ui/default/svelte/result.svelte b/pagefind_ui/default/svelte/result.svelte index 86639611..e1fca739 100644 --- a/pagefind_ui/default/svelte/result.svelte +++ b/pagefind_ui/default/svelte/result.svelte @@ -1,155 +1,162 @@
{@html data.excerpt}
- {#if meta.length} - - {/if} -{@html data.excerpt}
+ {#if meta.length} + + {/if} ++ {placeholder(30)} +
++ {placeholder(40)} +
+- {placeholder(30)} -
-- {placeholder(40)} -
-- {@html data.meta?.title}{data.meta?.title}
{#if has_root_sub_result} @@ -77,11 +70,8 @@ {#each non_root_sub_results as subres}- {@html subres.title}{subres.title}
{@html subres.excerpt}
@@ -92,7 +82,7 @@