Don't affect avatars in pinned message contents

This uses more direct classes to avoid affecting pills. Fixes https://github.com/vector-im/riot-web/issues/5438

Signed-off-by: Travis Ralston <travpc@gmail.com>
pull/21833/head
Travis Ralston 2018-05-26 18:21:24 -06:00
parent ed9e4d82c9
commit 62f4cfe734
2 changed files with 4 additions and 2 deletions

View File

@ -40,7 +40,7 @@ limitations under the License.
left: 0;
}
.mx_PinnedEventTile .mx_BaseAvatar {
.mx_PinnedEventTile .mx_PinnedEventTile_senderAvatar .mx_BaseAvatar {
float: left;
margin-right: 10px;
}

View File

@ -80,7 +80,9 @@ module.exports = React.createClass({
{ unpinButton }
</div>
<span className="mx_PinnedEventTile_senderAvatar">
<MemberAvatar member={sender} width={avatarSize} height={avatarSize} />
</span>
<span className="mx_PinnedEventTile_sender">
{ sender.name }
</span>