Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): fix cut off buttons in chat message #1373

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading