put on key down in correct place
Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte
CHANGED
@@ -192,8 +192,6 @@
|
|
192 |
}
|
193 |
</script>
|
194 |
|
195 |
-
<svelte:window on:keydown={onKeydown} />
|
196 |
-
|
197 |
{#if showTokenModal}
|
198 |
<PlaygroundTokenModal
|
199 |
on:close={() => (showTokenModal = false)}
|
@@ -206,6 +204,7 @@
|
|
206 |
/>
|
207 |
{/if}
|
208 |
|
|
|
209 |
<div
|
210 |
class="w-dvh grid divide-gray-200 overflow-hidden bg-gray-100/50 max-md:divide-y md:h-dvh dark:[color-scheme:dark]
|
211 |
{conversations.length === 1
|
@@ -232,7 +231,7 @@
|
|
232 |
></textarea>
|
233 |
</div>
|
234 |
</div>
|
235 |
-
<div class="relative divide-y divide-gray-200 pt-3 dark:divide-gray-800">
|
236 |
<div
|
237 |
class="flex h-[calc(100dvh-5rem)] divide-x divide-gray-200 {conversations.length === 2
|
238 |
? '*:w-1/2'
|
|
|
192 |
}
|
193 |
</script>
|
194 |
|
|
|
|
|
195 |
{#if showTokenModal}
|
196 |
<PlaygroundTokenModal
|
197 |
on:close={() => (showTokenModal = false)}
|
|
|
204 |
/>
|
205 |
{/if}
|
206 |
|
207 |
+
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
208 |
<div
|
209 |
class="w-dvh grid divide-gray-200 overflow-hidden bg-gray-100/50 max-md:divide-y md:h-dvh dark:[color-scheme:dark]
|
210 |
{conversations.length === 1
|
|
|
231 |
></textarea>
|
232 |
</div>
|
233 |
</div>
|
234 |
+
<div class="relative divide-y divide-gray-200 pt-3 dark:divide-gray-800" on:keydown={onKeydown}>
|
235 |
<div
|
236 |
class="flex h-[calc(100dvh-5rem)] divide-x divide-gray-200 {conversations.length === 2
|
237 |
? '*:w-1/2'
|