From 69fdd485e6a581f4b17c9cb77a0ee95518316d3d Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 18 Nov 2015 23:41:38 +0000 Subject: [PATCH] general faff to make the new edit button position interact properly with dave's 'click to show all read receipts' --- src/skins/vector/views/molecules/EventTile.js | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/skins/vector/views/molecules/EventTile.js b/src/skins/vector/views/molecules/EventTile.js index 48fdc077..322be444 100644 --- a/src/skins/vector/views/molecules/EventTile.js +++ b/src/skins/vector/views/molecules/EventTile.js @@ -145,9 +145,11 @@ module.exports = React.createClass({ var style = { left: left+'px', top: '0px', - visibility: i < MAX_READ_AVATARS || this.state.allReadAvatars ? 'visible' : 'hidden' + visibility: ((i < MAX_READ_AVATARS) || this.state.allReadAvatars) ? 'visible' : 'hidden' }; + //console.log("i = " + i + ", MAX_READ_AVATARS = " + MAX_READ_AVATARS + ", allReadAvatars = " + this.state.allReadAvatars + " visibility = " + style.visibility); + // add to the start so the most recent is on the end (ie. ends up rightmost) avatars.unshift( = MAX_READ_AVATARS - 1) left -= 15; if (remainder > 0) { remText = { remainder }+ ; + left -= 15; } + editButton = ( + + ); } - var editButton = ( - - ); - return { editButton } { remText }