From c359358101f06c72488c6df110ec8f6f899af504 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Tue, 16 Aug 2016 11:59:26 +0100 Subject: [PATCH] Initial context menu positioning and style change --- src/components/views/rooms/EventTile.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index 67e63e3e62..cd49bef412 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -320,7 +320,6 @@ module.exports = React.createClass({ left -= 15; } } - var editButton; var remText; if (!this.state.allReadAvatars) { var remainder = receipts.length - MAX_READ_AVATARS; @@ -331,15 +330,9 @@ module.exports = React.createClass({ ; left -= 15; } - editButton = ( - - ); } return - { editButton } { remText } { avatars } ; @@ -417,6 +410,11 @@ module.exports = React.createClass({ sender = ; } } + + var editButton = ( + + ); + return (
@@ -432,6 +430,7 @@ module.exports = React.createClass({ highlightLink={this.props.highlightLink} showUrlPreview={this.props.showUrlPreview} onWidgetLoad={this.props.onWidgetLoad} /> + { editButton }
);