Skip to content

Commit

Permalink
update style rules for message bubbles
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjdominguez committed Oct 12, 2023
1 parent 83c450a commit 8f67906
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/components/bot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Bot = () => {
<MessageHistory conversation={conversation} />
</div>
{gptResponse.length > 0 && (
<div className="bg-green-200 text-green-800 mr-auto p-2 rounded mb-2 w-2/3 text-start">
<div className="bg-green-200 text-green-800 mr-auto p-2 rounded mb-2 w-2/3 text-start rounded-bl-[0.9rem] rounded-tr-[0.9rem] rounded-br-[0.9rem]">
<p>{gptResponse}</p>
</div>
)}
Expand Down
14 changes: 13 additions & 1 deletion client/src/components/messageHy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,19 @@ export const MessageHistory = ({ conversation }) => {
: message.role === 'assistant'
? 'bg-green-200 text-green-800 mr-auto text-start'
: ''
} p-4 rounded mb-4 w-2/3`}>
}
p-4
mb-4
w-2/3
rounded
shadow-sm
${
message.role === 'user'
? 'rounded-tl-[0.9rem] rounded-bl-[0.9rem] rounded-br-[0.9rem]'
: message.role === 'assistant'
? 'rounded-bl-[0.9rem] rounded-tr-[0.9rem] rounded-br-[0.9rem]'
: ''
}`}>
<p>{message.content}</p>
</div>
))
Expand Down

0 comments on commit 8f67906

Please sign in to comment.