ui
Browse files
src/lib/components/Playground/Playground.svelte
CHANGED
@@ -132,7 +132,7 @@
|
|
132 |
<div
|
133 |
class="grid h-dvh max-h-dvh divide-gray-200 overflow-hidden max-md:grid-cols-1 max-md:divide-y md:grid-cols-[260px,1fr,260px] md:divide-x dark:divide-gray-800 dark:bg-gray-900 dark:text-gray-300"
|
134 |
>
|
135 |
-
<div class="relative flex flex-col overflow-y-auto
|
136 |
<div class="pb-2 text-sm font-semibold">SYSTEM</div>
|
137 |
<textarea
|
138 |
disabled
|
@@ -140,7 +140,7 @@
|
|
140 |
id=""
|
141 |
placeholder="Enter a custom prompt"
|
142 |
bind:value={systemMessage.content}
|
143 |
-
class="absolute inset-x-0 bottom-0 h-full resize-none bg-transparent p-2 pl-5 pr-3 pt-
|
144 |
></textarea>
|
145 |
</div>
|
146 |
<div class="relative divide-y divide-gray-200 dark:divide-gray-800">
|
@@ -153,10 +153,10 @@
|
|
153 |
{/each}
|
154 |
|
155 |
<button
|
156 |
-
class="
|
157 |
on:click={addMessage}
|
158 |
>
|
159 |
-
<div class="
|
160 |
</button>
|
161 |
</div>
|
162 |
|
|
|
132 |
<div
|
133 |
class="grid h-dvh max-h-dvh divide-gray-200 overflow-hidden max-md:grid-cols-1 max-md:divide-y md:grid-cols-[260px,1fr,260px] md:divide-x dark:divide-gray-800 dark:bg-gray-900 dark:text-gray-300"
|
134 |
>
|
135 |
+
<div class="relative flex flex-col overflow-y-auto px-5 pb-24 pt-7">
|
136 |
<div class="pb-2 text-sm font-semibold">SYSTEM</div>
|
137 |
<textarea
|
138 |
disabled
|
|
|
140 |
id=""
|
141 |
placeholder="Enter a custom prompt"
|
142 |
bind:value={systemMessage.content}
|
143 |
+
class="absolute inset-x-0 bottom-0 h-full resize-none bg-transparent p-2 pl-5 pr-3 pt-14 outline-none"
|
144 |
></textarea>
|
145 |
</div>
|
146 |
<div class="relative divide-y divide-gray-200 dark:divide-gray-800">
|
|
|
153 |
{/each}
|
154 |
|
155 |
<button
|
156 |
+
class="flex px-6 py-6 hover:bg-gray-50 dark:hover:bg-gray-800/50"
|
157 |
on:click={addMessage}
|
158 |
>
|
159 |
+
<div class="!p-0 text-sm font-semibold">Add message</div>
|
160 |
</button>
|
161 |
</div>
|
162 |
|