Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
feat: add extra affordances to make it obvious websearch & reasoning can be opened (#1613)
Browse files
src/lib/components/OpenWebSearchResults.svelte
CHANGED
@@ -8,6 +8,7 @@
|
|
8 |
import CarbonError from "~icons/carbon/error-filled";
|
9 |
import EosIconsLoading from "~icons/eos-icons/loading";
|
10 |
import IconInternet from "./icons/IconInternet.svelte";
|
|
|
11 |
|
12 |
export let webSearchMessages: MessageWebSearchUpdate[] = [];
|
13 |
|
@@ -22,9 +23,11 @@
|
|
22 |
</script>
|
23 |
|
24 |
<details
|
25 |
-
class="flex w-fit max-w-full rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900"
|
26 |
>
|
27 |
-
<summary
|
|
|
|
|
28 |
<div
|
29 |
class="relative grid aspect-square place-content-center overflow-hidden rounded-lg bg-gray-100 dark:bg-gray-800"
|
30 |
>
|
@@ -59,6 +62,7 @@
|
|
59 |
{/if}
|
60 |
</dt>
|
61 |
</dl>
|
|
|
62 |
</summary>
|
63 |
|
64 |
<div class="content px-5 pb-5 pt-4">
|
|
|
8 |
import CarbonError from "~icons/carbon/error-filled";
|
9 |
import EosIconsLoading from "~icons/eos-icons/loading";
|
10 |
import IconInternet from "./icons/IconInternet.svelte";
|
11 |
+
import CarbonCaretDown from "~icons/carbon/caret-down";
|
12 |
|
13 |
export let webSearchMessages: MessageWebSearchUpdate[] = [];
|
14 |
|
|
|
23 |
</script>
|
24 |
|
25 |
<details
|
26 |
+
class="group flex w-fit max-w-full flex-col rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900"
|
27 |
>
|
28 |
+
<summary
|
29 |
+
class="grid min-w-72 cursor-pointer select-none grid-cols-[40px,1fr,24px] items-center gap-2.5 rounded-xl p-2 group-open:rounded-b-none hover:bg-gray-500/10"
|
30 |
+
>
|
31 |
<div
|
32 |
class="relative grid aspect-square place-content-center overflow-hidden rounded-lg bg-gray-100 dark:bg-gray-800"
|
33 |
>
|
|
|
62 |
{/if}
|
63 |
</dt>
|
64 |
</dl>
|
65 |
+
<CarbonCaretDown class="size-6 text-gray-400 transition-transform group-open:rotate-180" />
|
66 |
</summary>
|
67 |
|
68 |
<div class="content px-5 pb-5 pt-4">
|
src/lib/components/chat/ChatInput.svelte
CHANGED
@@ -65,7 +65,7 @@
|
|
65 |
enterkeyhint={!isVirtualKeyboard() ? "enter" : "send"}
|
66 |
tabindex="0"
|
67 |
rows="1"
|
68 |
-
class="scrollbar-custom absolute
|
69 |
class:text-gray-400={disabled}
|
70 |
bind:value
|
71 |
bind:this={textareaElement}
|
|
|
65 |
enterkeyhint={!isVirtualKeyboard() ? "enter" : "send"}
|
66 |
tabindex="0"
|
67 |
rows="1"
|
68 |
+
class="scrollbar-custom absolute top-0 m-0 h-full w-full resize-none scroll-p-3 overflow-x-hidden overflow-y-scroll border-0 bg-transparent p-3 outline-none focus:ring-0 focus-visible:ring-0 max-sm:p-2.5 max-sm:text-[16px]"
|
69 |
class:text-gray-400={disabled}
|
70 |
bind:value
|
71 |
bind:this={textareaElement}
|
src/lib/components/chat/OpenReasoningResults.svelte
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<script lang="ts">
|
2 |
import MarkdownRenderer from "./MarkdownRenderer.svelte";
|
|
|
3 |
|
4 |
export let summary: string;
|
5 |
export let content: string;
|
@@ -7,10 +8,11 @@
|
|
7 |
</script>
|
8 |
|
9 |
<details
|
10 |
-
class="flex w-fit max-w-full flex-col rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900"
|
11 |
>
|
12 |
<summary
|
13 |
-
class="
|
|
|
14 |
>
|
15 |
<div
|
16 |
class="relative grid aspect-square place-content-center overflow-hidden rounded-lg bg-gray-100 dark:bg-gray-800"
|
@@ -49,6 +51,7 @@
|
|
49 |
{summary}
|
50 |
</dt>
|
51 |
</dl>
|
|
|
52 |
</summary>
|
53 |
|
54 |
<div
|
|
|
1 |
<script lang="ts">
|
2 |
import MarkdownRenderer from "./MarkdownRenderer.svelte";
|
3 |
+
import CarbonCaretDown from "~icons/carbon/caret-down";
|
4 |
|
5 |
export let summary: string;
|
6 |
export let content: string;
|
|
|
8 |
</script>
|
9 |
|
10 |
<details
|
11 |
+
class="group flex w-fit max-w-full flex-col rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900"
|
12 |
>
|
13 |
<summary
|
14 |
+
class="
|
15 |
+
grid min-w-72 cursor-pointer select-none grid-cols-[40px,1fr,24px] items-center gap-2.5 rounded-xl p-2 group-open:rounded-b-none hover:bg-gray-500/10"
|
16 |
>
|
17 |
<div
|
18 |
class="relative grid aspect-square place-content-center overflow-hidden rounded-lg bg-gray-100 dark:bg-gray-800"
|
|
|
51 |
{summary}
|
52 |
</dt>
|
53 |
</dl>
|
54 |
+
<CarbonCaretDown class="size-6 text-gray-400 transition-transform group-open:rotate-180" />
|
55 |
</summary>
|
56 |
|
57 |
<div
|