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 }