Chats: fix mention styling
This commit is contained in:
parent
ebd126ac3c
commit
b42b8fced4
|
@ -307,7 +307,9 @@ const ChatMessageList: React.FC<IChatMessageList> = ({ chat }) => {
|
||||||
title={getFormattedTimestamp(chatMessage)}
|
title={getFormattedTimestamp(chatMessage)}
|
||||||
className={
|
className={
|
||||||
classNames({
|
classNames({
|
||||||
'text-ellipsis break-words relative rounded-md py-2 px-3 max-w-full space-y-2': true,
|
'text-ellipsis break-words relative rounded-md py-2 px-3 max-w-full space-y-2 [&_.mention]:underline': true,
|
||||||
|
'[&_.mention]:text-primary-600 dark:[&_.mention]:text-accent-blue': !isMyMessage,
|
||||||
|
'[&_.mention]:text-white dark:[&_.mention]:white': isMyMessage,
|
||||||
'bg-primary-500 text-white': isMyMessage,
|
'bg-primary-500 text-white': isMyMessage,
|
||||||
'bg-gray-200 dark:bg-gray-800 text-gray-900 dark:text-gray-100': !isMyMessage,
|
'bg-gray-200 dark:bg-gray-800 text-gray-900 dark:text-gray-100': !isMyMessage,
|
||||||
'!bg-transparent !p-0 emoji-lg': isOnlyEmoji,
|
'!bg-transparent !p-0 emoji-lg': isOnlyEmoji,
|
||||||
|
|
Loading…
Reference in New Issue