diff --git a/src/skins/vector/css/molecules/EventTile.css b/src/skins/vector/css/molecules/EventTile.css index 7d4acada..1b2725b5 100644 --- a/src/skins/vector/css/molecules/EventTile.css +++ b/src/skins/vector/css/molecules/EventTile.css @@ -91,9 +91,9 @@ limitations under the License. .mx_EventTile_msgOption { float: right; text-align: right; - margin-right: 10px; z-index: 1; position: relative; + width: 100px; } .mx_MessageTimestamp { @@ -111,10 +111,9 @@ limitations under the License. } .mx_EventTile_editButton { - display: block; - visibility: hidden; - margin-left: auto; - margin-right: 0px; + position: absolute; + display: inline-block; + visibility: hidden; } .mx_EventTile:hover .mx_EventTile_editButton { diff --git a/src/skins/vector/views/molecules/EventTile.js b/src/skins/vector/views/molecules/EventTile.js index fa1604f9..48fdc077 100644 --- a/src/skins/vector/views/molecules/EventTile.js +++ b/src/skins/vector/views/molecules/EventTile.js @@ -172,15 +172,22 @@ module.exports = React.createClass({ if (remainder > 0) { remText = +{ remainder } + style={{ left: left }}>{ remainder }+ ; } } + var editButton = ( + + ); + return - {remText} - - {avatars} + { editButton } + { remText } + + { avatars } ; }, @@ -217,12 +224,6 @@ module.exports = React.createClass({ menu: this.state.menu, }); var timestamp = - var editButton = ( - - ); var aux = null; if (msgtype === 'm.image') aux = "sent an image"; @@ -247,7 +248,6 @@ module.exports = React.createClass({ return (
- { editButton } { timestamp } { readAvatars }