Skip to content

Commit

Permalink
fix(ui): fix cut off buttons in chat message (#1373)
Browse files Browse the repository at this point in the history
fix(ui): tool buttons in chat message
  • Loading branch information
dlavrenuek authored Jul 29, 2024
1 parent 18eeac6 commit 24f7202
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/chat/ChatMessage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@

{#if message.from === "assistant"}
<div
class="group relative -mb-6 flex items-start justify-start gap-4 pb-4 leading-relaxed"
class="group relative -mb-4 flex items-start justify-start gap-4 pb-4 leading-relaxed"
role="presentation"
on:click={() => (isTapped = !isTapped)}
on:keydown={() => (isTapped = !isTapped)}
Expand Down Expand Up @@ -335,7 +335,7 @@
</div>
{#if !loading && (message.content || toolUpdates)}
<div
class="absolute bottom-1 right-0 -mb-4 flex max-md:transition-all md:bottom-0 md:group-hover:visible md:group-hover:opacity-100
class="absolute -bottom-4 right-0 flex max-md:transition-all md:group-hover:visible md:group-hover:opacity-100
{message.score ? 'visible opacity-100' : 'invisible max-md:-translate-y-4 max-md:opacity-0'}
{isTapped || isCopied ? 'max-md:visible max-md:translate-y-0 max-md:opacity-100' : ''}
"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/chat/ChatWindow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
{/if}

{#if messages.length > 0}
<div class="flex h-max flex-col gap-6 pb-52 2xl:gap-7">
<div class="flex h-max flex-col gap-8 pb-52">
<ChatMessage
{loading}
{messages}
Expand Down

0 comments on commit 24f7202

Please sign in to comment.