fix: +99
This commit is contained in:
parent
62d44cb7a9
commit
77cf450d20
|
@ -165,7 +165,7 @@ Rectangle {
|
||||||
visible: (unviewedMessagesCount > 0) || wrapper.hasMentions
|
visible: (unviewedMessagesCount > 0) || wrapper.hasMentions
|
||||||
StyledText {
|
StyledText {
|
||||||
id: contactNumberChats
|
id: contactNumberChats
|
||||||
text: wrapper.hasMentions ? '@' : (wrapper.unviewedMessagesCount < 100 ? wrapper.unviewedMessagesCount : "99")
|
text: wrapper.hasMentions ? '@' : (wrapper.unviewedMessagesCount < 100 ? wrapper.unviewedMessagesCount : "+99")
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
|
@ -112,7 +112,7 @@ RowLayout {
|
||||||
font.pixelSize: chatsModel.unreadMessagesCount > 99 ? 10 : 12
|
font.pixelSize: chatsModel.unreadMessagesCount > 99 ? 10 : 12
|
||||||
color: Style.current.white
|
color: Style.current.white
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: chatsModel.unreadMessagesCount
|
text: chatsModel.unreadMessagesCount > 99 ? "+99" : chatsModel.unreadMessagesCount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue