Skip to content

Commit

Permalink
Update: copy-to-clipboard chat messages
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgreggarcia committed Jul 16, 2023
1 parent adca403 commit 96e94b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/chat-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ const ChatMessage: React.FC<MessageProps> = ({ message, isStreaming, isCurrentMe
: 'border-0 border-black/15 bg-slate-100 dark:border-gray-900/50 dark:bg-gray-700 dark:text-white'
}`}
style={{ overflowWrap: 'anywhere' }}
onMouseEnter={() => setHoveredMessageIndex(messageIndex)}
onMouseLeave={() => setHoveredMessageIndex(null)}
>
<div className="relative m-auto flex p-4 md:max-w-2xl md:gap-6 md:py-6 lg:max-w-2xl lg:px-0 xl:max-w-3xl">
<div className="min-w-[40px] text-right font-bold mr-5 sm:mr-4">
Expand Down

0 comments on commit 96e94b8

Please sign in to comment.