diff --git a/src/lib/components/chat/Messages/ResponseMessage/WebSearchResults.svelte b/src/lib/components/chat/Messages/ResponseMessage/WebSearchResults.svelte index 528108036..d4416014a 100644 --- a/src/lib/components/chat/Messages/ResponseMessage/WebSearchResults.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage/WebSearchResults.svelte @@ -2,32 +2,25 @@ import ChevronDown from '$lib/components/icons/ChevronDown.svelte'; import ChevronUp from '$lib/components/icons/ChevronUp.svelte'; import MagnifyingGlass from '$lib/components/icons/MagnifyingGlass.svelte'; - import { Collapsible } from 'bits-ui'; - import { slide } from 'svelte/transition'; + import Collapsible from '$lib/components/common/Collapsible.svelte'; export let status = { urls: [], query: '' }; let state = false; - - -
- - - {#if state} - - {:else} - - {/if} -
-
- - +
+ + + {#if state} + + {:else} + + {/if} +
+
{#if status?.query} {/each} - - +
+ diff --git a/src/lib/components/common/Collapsible.svelte b/src/lib/components/common/Collapsible.svelte new file mode 100644 index 000000000..c7497d835 --- /dev/null +++ b/src/lib/components/common/Collapsible.svelte @@ -0,0 +1,18 @@ + + +
+ + + {#if open} +
+ +
+ {/if} +