fix UI jerk on updating message preview

This commit is contained in:
or-else
2021-01-17 18:08:16 -08:00
parent 0afa8bcdcd
commit 4445a90437
7 changed files with 9 additions and 10 deletions
+2 -3
View File
@@ -61,8 +61,7 @@ export default class Contact extends React.Component {
this.props.comment;
return (
<li className={!this.props.showCheckmark && this.props.selected ? "selected" : null}
onClick={this.handleClick}>
<li className={!this.props.showCheckmark && this.props.selected ? "selected" : null} onClick={this.handleClick}>
<div className="avatar-box">
<LetterTile
avatar={avatar}
@@ -78,7 +77,7 @@ export default class Contact extends React.Component {
{this.props.isChannel ? <img src="/img/channel.png" className="channel" alt="channel" /> : null}
<UnreadBadge count={this.props.unread} /><ContactBadges badges={icon_badges} />
</div>
{subtitle ? <div className="contact-comment">{subtitle}</div> : null}
<div className="contact-comment">{subtitle || '\u00A0'}</div>
<span><ContactBadges badges={badges} /></span>
</div>
{this.props.showContextMenu ?