mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
incorporates 13 from Nicks list
This commit is contained in:
@@ -16,15 +16,17 @@ const ConversationBubble = forwardRef<
|
||||
ref={ref}
|
||||
className={`flex rounded-3xl ${
|
||||
type === 'ANSWER'
|
||||
? 'bg-gray-1000'
|
||||
? 'self-start bg-gray-1000'
|
||||
: type === 'ERROR'
|
||||
? 'bg-red-1000'
|
||||
: ''
|
||||
? 'self-start bg-red-1000'
|
||||
: 'flex-row-reverse self-end bg-blue-1000 text-white'
|
||||
} py-7 px-5 ${className}`}
|
||||
>
|
||||
<Avatar avatar={type === 'QUESTION' ? '👤' : '🦖'}></Avatar>
|
||||
<div
|
||||
className={`ml-5 flex items-center ${
|
||||
className={`${
|
||||
type === 'QUESTION' ? 'mr-5' : 'ml-5'
|
||||
} flex items-center ${
|
||||
type === 'ERROR'
|
||||
? 'rounded-lg border border-red-2000 p-2 text-red-3000'
|
||||
: ''
|
||||
@@ -40,3 +42,5 @@ const ConversationBubble = forwardRef<
|
||||
});
|
||||
|
||||
export default ConversationBubble;
|
||||
|
||||
// TODO : split question and answer into two diff JSX
|
||||
|
||||
Reference in New Issue
Block a user