From c464702610ffb7f9a143070fdc4711d83ce27436 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 24 Oct 2019 14:15:17 +0300 Subject: Fix link color in own messages --- vnext/src/ui/Message.css | 16 ++++++++++++++++ vnext/src/ui/PM.js | 10 +++++----- vnext/src/ui/Thread.js | 2 +- vnext/src/ui/helpers/BubbleStyle.js | 17 ----------------- 4 files changed, 22 insertions(+), 23 deletions(-) (limited to 'vnext/src/ui') diff --git a/vnext/src/ui/Message.css b/vnext/src/ui/Message.css index 4ff8169e..9bcca83b 100644 --- a/vnext/src/ui/Message.css +++ b/vnext/src/ui/Message.css @@ -148,6 +148,22 @@ blockquote { padding: 12px; text-align: right; } +.msg-bubble { + padding: 12px; + display: inline-block; + background: var(--border-color); + color: #222; +} + +.msg-bubble-my { + color: #fff !important; + background: var(--link-color) !important; +} + +.msg-bubble-my a { + color: #fff !important; + text-decoration: underline; +} #replies .msg-txt, #private-messages .msg-txt { margin: 0; diff --git a/vnext/src/ui/PM.js b/vnext/src/ui/PM.js index a25580e5..9903b4e5 100644 --- a/vnext/src/ui/PM.js +++ b/vnext/src/ui/PM.js @@ -2,16 +2,16 @@ import React from 'react'; import Avatar from './Avatar'; import { format } from '../utils/embed'; -import { bubbleStyle, chatItemStyle } from './helpers/BubbleStyle'; +import { chatItemStyle } from './helpers/BubbleStyle'; function PM(props) { - const { chat } = props; + const { chat, visitor } = props; return (
= 0) }} />