diff --git a/web/chat/chat-thread-list.css b/web/chat/chat-thread-list.css --- a/web/chat/chat-thread-list.css +++ b/web/chat/chat-thread-list.css @@ -28,11 +28,11 @@ background: var(--thread-active-bg); } -div.activeThread :is(div.dark, .lastMessage span.light, .title) { +div.activeThread :is(div.dark, .lastMessage span.read, .title) { color: var(--fg); } -div.activeThread .lastMessage.light { +div.activeThread .lastMessage.read { color: var(--fg); } @@ -113,13 +113,13 @@ color: var(--fg); font-weight: var(--semi-bold); } -div.lastMessage.white { +div.lastMessage.unread { color: var(--fg); } div.dark { color: var(--thread-color-read); } -.light { +.read { color: var(--thread-from-color-read); } div.dotContainer { diff --git a/web/chat/message-preview.react.js b/web/chat/message-preview.react.js --- a/web/chat/message-preview.react.js +++ b/web/chat/message-preview.react.js @@ -25,6 +25,8 @@ const { messageInfo: messageInfoProps, threadInfo } = props; const { unread } = threadInfo.currentUser; + const colorStyle = unread ? css.unread : css.read; + if (!messageInfoProps) { return (
@@ -36,6 +38,7 @@ messageInfoProps.type === messageTypes.SIDEBAR_SOURCE ? messageInfoProps.sourceMessage : messageInfoProps; + const messageTitle = getMessageTitle( messageInfo, threadInfo, @@ -50,10 +53,8 @@ ) { const userString = stringForUser(messageInfo.creator); const username = `${userString}: `; - const usernameStyle = unread ? css.white : css.light; - usernameText = {username}; + usernameText = {username}; } - const colorStyle = unread ? css.white : css.light; return (
{usernameText} @@ -61,9 +62,8 @@
); } else { - const colorStyle = unread ? css.white : css.light; return ( -
+
{messageTitle}
);