From f8660de52d75bcd9471eb87edf86a8c652d9d1a0 Mon Sep 17 00:00:00 2001 From: Stefan Parviainen Date: Tue, 14 Nov 2017 20:13:00 +0100 Subject: [PATCH] Add note about alternative to opacity --- src/components/views/messages/SenderProfile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/messages/SenderProfile.js b/src/components/views/messages/SenderProfile.js index 2c557bebe2..04e7832493 100644 --- a/src/components/views/messages/SenderProfile.js +++ b/src/components/views/messages/SenderProfile.js @@ -56,6 +56,7 @@ export default function SenderProfile(props) { // It is not possible to wrap the whole thing, because the user name might contain flair which should // be shown at full opacity. Sadly CSS does not make it possible to "reset" opacity so we have to do it // in parts like this. Sometimes CSS makes me a sad panda :-( + // XXX: This could be avoided if the actual colour is set, rather than faking it with opacity { content.props.children[0] ? { content.props.children[0] } : '' }