victor HF staff commited on
Commit
9041b84
1 Parent(s): 6120a79
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 p-5 pb-24">
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-12 outline-none"
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="grid w-full grid-cols-[130px,1fr] items-center py-6 hover:bg-gray-50 dark:hover:bg-gray-800/50"
157
  on:click={addMessage}
158
  >
159
- <div class="button !p-0 text-sm font-semibold">Add message</div>
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