Skip to content

Commit

Permalink
Refactor: Chat-card tailwind max width
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Aug 2, 2024
1 parent 02d3293 commit 2749286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/components/atom/chat-card/chat-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const ChatCard = ({ content, role }: ChatCardProps) => {
<div>
{role === 'user' ? null : <img src={maru} className="mb-2 h-8 w-8" />}
<div
className={cn('flex h-auto flex-col-reverse', {
className={cn('flex h-auto max-w-72 flex-col-reverse', {
'items-end justify-end': role === 'user',
'items-start justify-start': role !== 'user',
})}
>
<div
className={cn('flex w-auto max-w-72 rounded-md bg-white px-5 py-3 text-black', {
className={cn('flex w-auto rounded-md bg-white px-5 py-3 text-black', {
'justify-end bg-primary-blue text-white': role === 'user',
'justify-start text-left': role !== 'user',
})}
Expand Down

0 comments on commit 2749286

Please sign in to comment.