mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
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.
This commit is contained in:
parent
f0dbd161b3
commit
5a5e967262
@ -695,7 +695,6 @@ module.exports = withMatrixClient(React.createClass({
|
||||
<div className="mx_EventTile_msgOption">
|
||||
{ readAvatars }
|
||||
</div>
|
||||
{ avatar }
|
||||
{ sender }
|
||||
<div className="mx_EventTile_line">
|
||||
<a href={permalink} onClick={this.onPermalinkClicked}>
|
||||
@ -712,6 +711,12 @@ module.exports = withMatrixClient(React.createClass({
|
||||
{ keyRequestInfo }
|
||||
{ editButton }
|
||||
</div>
|
||||
{
|
||||
// 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 }
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user