diff --git a/src/lib/components/documents/NoteHighlights.svelte b/src/lib/components/documents/NoteHighlights.svelte
index d78bc2e06..640c8c941 100644
--- a/src/lib/components/documents/NoteHighlights.svelte
+++ b/src/lib/components/documents/NoteHighlights.svelte
@@ -64,7 +64,16 @@
diff --git a/src/lib/components/documents/ResultsList.svelte b/src/lib/components/documents/ResultsList.svelte
index 269121e7a..1e6e74e83 100644
--- a/src/lib/components/documents/ResultsList.svelte
+++ b/src/lib/components/documents/ResultsList.svelte
@@ -88,16 +88,19 @@
{#each results as document (document.id)}
-
-
-
+
+
+
+
+
+
{#if document.highlights}
{/if}
diff --git a/src/lib/components/documents/SearchHighlights.svelte b/src/lib/components/documents/SearchHighlights.svelte
index f6830ec4a..93c563183 100644
--- a/src/lib/components/documents/SearchHighlights.svelte
+++ b/src/lib/components/documents/SearchHighlights.svelte
@@ -58,7 +58,7 @@
diff --git a/src/lib/components/documents/stories/ResultsList.stories.svelte b/src/lib/components/documents/stories/ResultsList.stories.svelte
index edb7ed39f..edb075fcb 100644
--- a/src/lib/components/documents/stories/ResultsList.stories.svelte
+++ b/src/lib/components/documents/stories/ResultsList.stories.svelte
@@ -6,7 +6,12 @@
// typescript complains without the type assertion
import searchResults from "$lib/api/fixtures/documents/search-highlight.json";
- const results = searchResults.results as Document[];
+ const highlighted = searchResults.results as Document[];
+ const results = highlighted.map((d) => ({
+ ...d,
+ highlights: null,
+ note_highlights: null,
+ }));
const count = searchResults.count;
const next = searchResults.next;
@@ -31,5 +36,7 @@
-
+
+
+
diff --git a/src/style/kit.css b/src/style/kit.css
index a626e2a8b..36482bd92 100644
--- a/src/style/kit.css
+++ b/src/style/kit.css
@@ -144,6 +144,10 @@ dd {
font-weight: var(--font-regular, 400);
}
+summary {
+ cursor: pointer;
+}
+
/*
Utility classes
*/