Spaces:
Sleeping
Sleeping
fix: adjust z-index for CodeBlock component and update ChatInput max height for better responsiveness
Browse files
src/lib/components/CodeBlock.svelte
CHANGED
|
@@ -32,7 +32,7 @@
|
|
| 32 |
</script>
|
| 33 |
|
| 34 |
<div class="group relative my-4 rounded-lg">
|
| 35 |
-
<div class="pointer-events-none sticky top-0
|
| 36 |
<div
|
| 37 |
class="pointer-events-auto absolute right-2 top-2 flex items-center gap-1.5 md:right-3 md:top-3"
|
| 38 |
>
|
|
|
|
| 32 |
</script>
|
| 33 |
|
| 34 |
<div class="group relative my-4 rounded-lg">
|
| 35 |
+
<div class="pointer-events-none sticky top-0 w-full">
|
| 36 |
<div
|
| 37 |
class="pointer-events-auto absolute right-2 top-2 flex items-center gap-1.5 md:right-3 md:top-3"
|
| 38 |
>
|
src/lib/components/chat/ChatInput.svelte
CHANGED
|
@@ -99,7 +99,7 @@
|
|
| 99 |
rows="1"
|
| 100 |
tabindex="0"
|
| 101 |
inputmode="text"
|
| 102 |
-
class="scrollbar-custom max-h-[4lh] w-full resize-none overflow-y-auto overflow-x-hidden border-0 bg-transparent px-2.5 py-2.5 outline-none focus:ring-0 focus-visible:ring-0 sm:px-3"
|
| 103 |
class:text-gray-400={disabled}
|
| 104 |
bind:value
|
| 105 |
bind:this={textareaElement}
|
|
|
|
| 99 |
rows="1"
|
| 100 |
tabindex="0"
|
| 101 |
inputmode="text"
|
| 102 |
+
class="scrollbar-custom max-h-[4lh] w-full resize-none overflow-y-auto overflow-x-hidden border-0 bg-transparent px-2.5 py-2.5 outline-none focus:ring-0 focus-visible:ring-0 sm:px-3 md:max-h-[8lh]"
|
| 103 |
class:text-gray-400={disabled}
|
| 104 |
bind:value
|
| 105 |
bind:this={textareaElement}
|