Skip to content

Commit

Permalink
Moved feedback icons to top right of chat (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
suprabathk authored Sep 8, 2023
1 parent 5ad51f1 commit 98cc475
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/chatblock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default function ChatBlock(props: {

return (
<div
className={`flex flex-col gap-4 p-4 md:p-6 ${
className={`relative flex flex-col gap-4 p-4 pt-8 md:p-6 md:pt-8 ${
message?.messageType === ChatMessageType.USER ? "bg-gray-500/5" : ""
}`}
>
Expand Down Expand Up @@ -255,10 +255,12 @@ export default function ChatBlock(props: {
</div>
)}
{message?.messageType === ChatMessageType.AYUSHMA && (
<ChatFeedback
message_id={message.external_id}
feedback={message?.feedback ?? null}
/>
<div className="absolute top-2 right-2">
<ChatFeedback
message_id={message.external_id}
feedback={message?.feedback ?? null}
/>
</div>
)}
</div>
);
Expand Down

1 comment on commit 98cc475

@vercel
Copy link

@vercel vercel bot commented on 98cc475 Sep 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.