Spaces:
Running
Running
Restructure form
Browse files- src/routes/+page.svelte +5 -2
src/routes/+page.svelte
CHANGED
|
@@ -383,7 +383,7 @@
|
|
| 383 |
<div id="board-container" bind:this={canvasContainerEl} />
|
| 384 |
{#if canvas}
|
| 385 |
<div>
|
| 386 |
-
<div class="flex gap-x-2 mt-3 items-start justify-center align-vertical
|
| 387 |
<p class="font-bold align-middle py-2">Strength:</p>
|
| 388 |
<span
|
| 389 |
class="overflow-auto resize-y py-2 px-3 min-h-[42px] max-h-[500px] !w-[181px] whitespace-pre-wrap inline-block border border-gray-200 shadow-inner outline-none"
|
|
@@ -396,7 +396,8 @@
|
|
| 396 |
on:keydown={onKeyDown}
|
| 397 |
/>
|
| 398 |
</div>
|
| 399 |
-
<div class="flex gap-x-2 mt-3 items-start justify-center
|
|
|
|
| 400 |
<span
|
| 401 |
class="overflow-auto resize-y py-2 px-3 min-h-[42px] max-h-[500px] !w-[181px] whitespace-pre-wrap inline-block border border-gray-200 shadow-inner outline-none"
|
| 402 |
role="textbox"
|
|
@@ -408,6 +409,8 @@
|
|
| 408 |
bind:textContent={txt}
|
| 409 |
on:keydown={onKeyDown}
|
| 410 |
/>
|
|
|
|
|
|
|
| 411 |
<button
|
| 412 |
on:click={submitRequest}
|
| 413 |
class="bg-green-700 hover:bg-green-800 text-white font-bold py-[0.555rem] px-4 rounded-xl"
|
|
|
|
| 383 |
<div id="board-container" bind:this={canvasContainerEl} />
|
| 384 |
{#if canvas}
|
| 385 |
<div>
|
| 386 |
+
<div class="flex gap-x-2 mt-3 items-start justify-center align-vertical">
|
| 387 |
<p class="font-bold align-middle py-2">Strength:</p>
|
| 388 |
<span
|
| 389 |
class="overflow-auto resize-y py-2 px-3 min-h-[42px] max-h-[500px] !w-[181px] whitespace-pre-wrap inline-block border border-gray-200 shadow-inner outline-none"
|
|
|
|
| 396 |
on:keydown={onKeyDown}
|
| 397 |
/>
|
| 398 |
</div>
|
| 399 |
+
<div class="flex gap-x-2 mt-3 items-start justify-center">
|
| 400 |
+
<p class="font-bold align-middle py-2">Prompt:</p>
|
| 401 |
<span
|
| 402 |
class="overflow-auto resize-y py-2 px-3 min-h-[42px] max-h-[500px] !w-[181px] whitespace-pre-wrap inline-block border border-gray-200 shadow-inner outline-none"
|
| 403 |
role="textbox"
|
|
|
|
| 409 |
bind:textContent={txt}
|
| 410 |
on:keydown={onKeyDown}
|
| 411 |
/>
|
| 412 |
+
</div>
|
| 413 |
+
<div class="flex gap-x-2 mt-3 items-start justify-center {isLoading ? 'animate-pulse' : ''}">
|
| 414 |
<button
|
| 415 |
on:click={submitRequest}
|
| 416 |
class="bg-green-700 hover:bg-green-800 text-white font-bold py-[0.555rem] px-4 rounded-xl"
|