dark
Browse files
src/lib/components/Playground/Playground.svelte
CHANGED
@@ -228,20 +228,20 @@
|
|
228 |
>
|
229 |
{#if conversations.length > 1}
|
230 |
<div
|
231 |
-
class="flex h-11 flex-none items-center gap-1.5 whitespace-nowrap rounded-lg border border-gray-200/80 bg-white pl-3 pr-2 text-sm leading-none shadow-sm *:flex-none"
|
232 |
class:mr-3={index === 0}
|
233 |
class:mx-3={index === 1}
|
234 |
>
|
235 |
-
<div class="size-3.5 rounded bg-black"></div>
|
236 |
<div>{conversation.model}</div>
|
237 |
<button
|
238 |
-
class="ml-auto flex size-6 items-center justify-center rounded bg-gray-50 text-xs hover:bg-gray-100"
|
239 |
on:click={() => (conversations = conversations.filter((_, i) => i !== index))}
|
240 |
>
|
241 |
β
|
242 |
</button>
|
243 |
<button
|
244 |
-
class=" flex size-6 items-center justify-center rounded bg-gray-50 hover:bg-gray-100"
|
245 |
>
|
246 |
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"
|
247 |
><path
|
|
|
228 |
>
|
229 |
{#if conversations.length > 1}
|
230 |
<div
|
231 |
+
class="flex h-11 flex-none items-center gap-1.5 whitespace-nowrap rounded-lg border border-gray-200/80 bg-white pl-3 pr-2 text-sm leading-none shadow-sm *:flex-none dark:border-gray-800 dark:bg-gray-800/70 dark:hover:bg-gray-800"
|
232 |
class:mr-3={index === 0}
|
233 |
class:mx-3={index === 1}
|
234 |
>
|
235 |
+
<div class="size-3.5 rounded bg-black dark:bg-gray-400"></div>
|
236 |
<div>{conversation.model}</div>
|
237 |
<button
|
238 |
+
class="ml-auto flex size-6 items-center justify-center rounded bg-gray-50 text-xs hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700"
|
239 |
on:click={() => (conversations = conversations.filter((_, i) => i !== index))}
|
240 |
>
|
241 |
β
|
242 |
</button>
|
243 |
<button
|
244 |
+
class=" flex size-6 items-center justify-center rounded bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700"
|
245 |
>
|
246 |
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"
|
247 |
><path
|
src/lib/components/Playground/PlaygroundMessage.svelte
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
</script>
|
14 |
|
15 |
<div
|
16 |
-
class="group/message group grid grid-cols-[1fr,2.5rem] items-start gap-2 px-3.5 pb-6 pt-4 hover:bg-gray-100/70 @2xl:grid-cols-[130px,1fr,2.5rem] @2xl:grid-rows-1 @2xl:gap-4 @2xl:px-6 dark:hover:bg-gray-800/50 {$$props.class}"
|
17 |
>
|
18 |
<div class="col-span-2 pb-1 pt-3 text-sm font-semibold uppercase @2xl:col-span-1 @2xl:pb-2">
|
19 |
{message.role}
|
|
|
13 |
</script>
|
14 |
|
15 |
<div
|
16 |
+
class="group/message group grid grid-cols-[1fr,2.5rem] items-start gap-2 px-3.5 pb-6 pt-4 hover:bg-gray-100/70 @2xl:grid-cols-[130px,1fr,2.5rem] @2xl:grid-rows-1 @2xl:gap-4 @2xl:px-6 dark:border-gray-800 dark:hover:bg-gray-800/50 {$$props.class}"
|
17 |
>
|
18 |
<div class="col-span-2 pb-1 pt-3 text-sm font-semibold uppercase @2xl:col-span-1 @2xl:pb-2">
|
19 |
{message.role}
|