don't show sublist header badge in collapsed mode
just not enough space
This commit is contained in:
parent
c0becc7664
commit
05935db8fc
1 changed files with 13 additions and 12 deletions
|
@ -264,19 +264,20 @@ const RoomSubList = React.createClass({
|
||||||
const subListNotifCount = subListNotifications[0];
|
const subListNotifCount = subListNotifications[0];
|
||||||
const subListNotifHighlight = subListNotifications[1];
|
const subListNotifHighlight = subListNotifications[1];
|
||||||
|
|
||||||
|
|
||||||
let badge;
|
let badge;
|
||||||
const badgeClasses = classNames({
|
if (!this.props.collapsed) {
|
||||||
'mx_RoomSubList_badge': true,
|
const badgeClasses = classNames({
|
||||||
'mx_RoomSubList_badgeHighlight': subListNotifHighlight,
|
'mx_RoomSubList_badge': true,
|
||||||
});
|
'mx_RoomSubList_badgeHighlight': subListNotifHighlight,
|
||||||
if (subListNotifCount > 0) {
|
});
|
||||||
badge = <div className={badgeClasses} onClick={this._onNotifBadgeClick}>
|
if (subListNotifCount > 0) {
|
||||||
{ FormattingUtils.formatCount(subListNotifCount) }
|
badge = <div className={badgeClasses} onClick={this._onNotifBadgeClick}>
|
||||||
</div>;
|
{ FormattingUtils.formatCount(subListNotifCount) }
|
||||||
} else if (this.props.isInvite) {
|
</div>;
|
||||||
// no notifications but highlight anyway because this is an invite badge
|
} else if (this.props.isInvite) {
|
||||||
badge = <div className={badgeClasses} onClick={this._onInviteBadgeClick}>!</div>;
|
// no notifications but highlight anyway because this is an invite badge
|
||||||
|
badge = <div className={badgeClasses} onClick={this._onInviteBadgeClick}>!</div>;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// When collapsed, allow a long hover on the header to show user
|
// When collapsed, allow a long hover on the header to show user
|
||||||
|
|
Loading…
Reference in a new issue