mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
limit avatar name to 14 characters + … at the end
This commit is contained in:
parent
ee856266c7
commit
9a4ea07614
1 changed files with 4 additions and 1 deletions
|
@ -385,7 +385,10 @@ Rectangle {
|
|||
|
||||
TextStyle3 {
|
||||
id: avatarNameLabel
|
||||
text: getAvatarName()
|
||||
text: {
|
||||
var avatarName = getAvatarName();
|
||||
return avatarName.length <= 14 ? avatarName : avatarName.substring(0, 14) + '...'
|
||||
}
|
||||
anchors.left: avatarImage.right
|
||||
anchors.leftMargin: 30
|
||||
anchors.top: star.bottom
|
||||
|
|
Loading…
Reference in a new issue