Skip to content

Commit

Permalink
Merge pull request #55 from MARU-EGG/TSK-47
Browse files Browse the repository at this point in the history
[TSK-47] fix: 답변 출처 링크 넘어가는 버그 해결
  • Loading branch information
swgvenghy authored Oct 6, 2024
2 parents a2bf531 + aa9958c commit 7f57d6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/components/atom/chat-card/chat-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ const ChatCard = ({ content, role }: ChatCardProps) => {
})}
>
<div
className={cn('flex w-auto rounded-md bg-white px-5 py-3 text-black', {
className={cn('flex w-auto break-words rounded-md bg-white px-5 py-3 text-black', {
'justify-end bg-primary-blue text-white': role === 'user',
'max-w-full justify-start text-left mobile:max-w-full desktop:max-w-[2/3]': role !== 'user', // 모바일에서는 w-auto,
'justify-start text-left mobile:max-w-full desktop:max-w-[2/3]': role !== 'user', // 모바일에서는 w-auto,
})}
>
<div className="text-md font-pretendard font-normal">
<div className="text-md max-w-full font-pretendard font-normal">
{content === 'loading' ? <Loader /> : <ReactMarkdown remarkPlugins={[remarkGfm]}>{content}</ReactMarkdown>}
</div>
</div>
Expand Down

0 comments on commit 7f57d6d

Please sign in to comment.