Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
dlavrenuek
commited on
fix(ui): fix cut off buttons in chat message (#1373)
Browse files
src/lib/components/chat/ChatMessage.svelte
CHANGED
@@ -234,7 +234,7 @@
|
|
234 |
|
235 |
{#if message.from === "assistant"}
|
236 |
<div
|
237 |
-
class="group relative -mb-
|
238 |
role="presentation"
|
239 |
on:click={() => (isTapped = !isTapped)}
|
240 |
on:keydown={() => (isTapped = !isTapped)}
|
@@ -335,7 +335,7 @@
|
|
335 |
</div>
|
336 |
{#if !loading && (message.content || toolUpdates)}
|
337 |
<div
|
338 |
-
class="absolute bottom-
|
339 |
{message.score ? 'visible opacity-100' : 'invisible max-md:-translate-y-4 max-md:opacity-0'}
|
340 |
{isTapped || isCopied ? 'max-md:visible max-md:translate-y-0 max-md:opacity-100' : ''}
|
341 |
"
|
|
|
234 |
|
235 |
{#if message.from === "assistant"}
|
236 |
<div
|
237 |
+
class="group relative -mb-4 flex items-start justify-start gap-4 pb-4 leading-relaxed"
|
238 |
role="presentation"
|
239 |
on:click={() => (isTapped = !isTapped)}
|
240 |
on:keydown={() => (isTapped = !isTapped)}
|
|
|
335 |
</div>
|
336 |
{#if !loading && (message.content || toolUpdates)}
|
337 |
<div
|
338 |
+
class="absolute -bottom-4 right-0 flex max-md:transition-all md:group-hover:visible md:group-hover:opacity-100
|
339 |
{message.score ? 'visible opacity-100' : 'invisible max-md:-translate-y-4 max-md:opacity-0'}
|
340 |
{isTapped || isCopied ? 'max-md:visible max-md:translate-y-0 max-md:opacity-100' : ''}
|
341 |
"
|
src/lib/components/chat/ChatWindow.svelte
CHANGED
@@ -214,7 +214,7 @@
|
|
214 |
{/if}
|
215 |
|
216 |
{#if messages.length > 0}
|
217 |
-
<div class="flex h-max flex-col gap-
|
218 |
<ChatMessage
|
219 |
{loading}
|
220 |
{messages}
|
|
|
214 |
{/if}
|
215 |
|
216 |
{#if messages.length > 0}
|
217 |
+
<div class="flex h-max flex-col gap-8 pb-52">
|
218 |
<ChatMessage
|
219 |
{loading}
|
220 |
{messages}
|