From 088887454d1511e74cb37010f3db6a6abcc71dd2 Mon Sep 17 00:00:00 2001 From: Jicheng Lu Date: Mon, 12 Aug 2024 21:11:13 -0500 Subject: [PATCH] refine search list --- src/lib/scss/custom/pages/_knowledgebase.scss | 4 +++ .../knowledge-search-list.svelte | 27 ++++--------------- .../knowledge-search/knowledge-search.svelte | 17 ++++++++---- 3 files changed, 21 insertions(+), 27 deletions(-) diff --git a/src/lib/scss/custom/pages/_knowledgebase.scss b/src/lib/scss/custom/pages/_knowledgebase.scss index 0dedf8f..12e91ba 100644 --- a/src/lib/scss/custom/pages/_knowledgebase.scss +++ b/src/lib/scss/custom/pages/_knowledgebase.scss @@ -35,6 +35,10 @@ } .knowledge-search-result-container { + li::marker { + color: var(--bs-secondary) + } + .list-open { list-style-type: disclosure-open; } diff --git a/src/routes/page/knowledge-base/knowledge-search/knowledge-search-list.svelte b/src/routes/page/knowledge-base/knowledge-search/knowledge-search-list.svelte index 8a7e2f6..34d702f 100644 --- a/src/routes/page/knowledge-base/knowledge-search/knowledge-search-list.svelte +++ b/src/routes/page/knowledge-base/knowledge-search/knowledge-search-list.svelte @@ -1,31 +1,14 @@
- {#if list?.length > 0} - - {:else if isSearching} -
- -
- {:else if searchDone} -
-

{"Ehhh, no idea..."}

-
- {/if} +
\ No newline at end of file diff --git a/src/routes/page/knowledge-base/knowledge-search/knowledge-search.svelte b/src/routes/page/knowledge-base/knowledge-search/knowledge-search.svelte index 73e32b4..e26bc30 100644 --- a/src/routes/page/knowledge-base/knowledge-search/knowledge-search.svelte +++ b/src/routes/page/knowledge-base/knowledge-search/knowledge-search.svelte @@ -1,6 +1,7 @@