From 5a5e967262b749140e610fb87fe784426a6892aa Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 12 Jul 2018 17:48:49 +0100 Subject: [PATCH] Fix avatars vanishing on hover Turns out the z-index was to make the avatar appear above the EventTile_line even though it comes before in the DOM (it's absolutely positioned to overlap with it). Instead, just put it afterwards in the DOM. --- src/components/views/rooms/EventTile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index fff04d476d..0d8f2366ae 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -695,7 +695,6 @@ module.exports = withMatrixClient(React.createClass({
{ readAvatars }
- { avatar } { sender }
@@ -712,6 +711,12 @@ module.exports = withMatrixClient(React.createClass({ { keyRequestInfo } { editButton }
+ { + // The avatar goes after the event tile as it's absolutly positioned to be over the + // event tile line, so needs to be later in the DOM so it appears on top (this avoids + // the need for further z-indexing chaos) + } + { avatar } ); }