mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
badge content when hovered is now kerned via the CSS
This commit is contained in:
parent
33edb1dea9
commit
ffa43ebb96
@ -98,7 +98,7 @@ module.exports = React.createClass({
|
|||||||
var badgeClasses;
|
var badgeClasses;
|
||||||
|
|
||||||
if (this.state.badgeHover) {
|
if (this.state.badgeHover) {
|
||||||
badgeContent = "\u00B7 \u00B7 \u00B7";
|
badgeContent = "\u00B7\u00B7\u00B7";
|
||||||
} else if (this.props.highlight || notificationCount > 0) {
|
} else if (this.props.highlight || notificationCount > 0) {
|
||||||
badgeContent = notificationCount ? notificationCount : '!';
|
badgeContent = notificationCount ? notificationCount : '!';
|
||||||
} else {
|
} else {
|
||||||
@ -106,7 +106,7 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.highlight || notificationCount > 0) {
|
if (this.props.highlight || notificationCount > 0) {
|
||||||
badgeClasses = "mx_RoomTile_badge"
|
badgeClasses = "mx_RoomTile_badge";
|
||||||
} else {
|
} else {
|
||||||
badgeClasses = "mx_RoomTile_badge mx_RoomTile_badge_no_unread";
|
badgeClasses = "mx_RoomTile_badge mx_RoomTile_badge_no_unread";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user