diff --git a/src/modules/chat/components/ChatConversationList.jsx b/src/modules/chat/components/ChatConversationList.jsx index 4c435cc..f1f3929 100644 --- a/src/modules/chat/components/ChatConversationList.jsx +++ b/src/modules/chat/components/ChatConversationList.jsx @@ -23,12 +23,14 @@ function ChannelBadge({ channel }) { ); } -function ActivityDot({ status }) { - const color = status === 'away' ? '#e5a22a' : '#dc2626'; +function LastMessageDot({ fromMe }) { + const color = fromMe ? '#e5a22a' : '#00a4b7'; + const label = fromMe ? 'Última mensagem enviada pelo atendimento' : 'Última mensagem enviada pelo cliente'; return ( + ); +} export function ChatConversationList({ contacts, activeContactId, onSelectContact, + onOpenContact, isMobile = false, }) { return ( @@ -83,16 +105,16 @@ export function ChatConversationList({ display: 'grid', gridTemplateRows: 'auto minmax(0, 1fr)', gap: '0.85rem', - height: isMobile ? 'auto' : CHAT_LIST_HEIGHT, - maxHeight: isMobile ? 'none' : CHAT_LIST_HEIGHT, - alignSelf: 'start', + height: isMobile ? 'auto' : '100%', + maxHeight: isMobile ? 'none' : '100%', + alignSelf: isMobile ? 'start' : 'stretch', minHeight: 0, }} >