mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-06 18:13:09 +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 {
|
TextStyle3 {
|
||||||
id: avatarNameLabel
|
id: avatarNameLabel
|
||||||
text: getAvatarName()
|
text: {
|
||||||
|
var avatarName = getAvatarName();
|
||||||
|
return avatarName.length <= 14 ? avatarName : avatarName.substring(0, 14) + '...'
|
||||||
|
}
|
||||||
anchors.left: avatarImage.right
|
anchors.left: avatarImage.right
|
||||||
anchors.leftMargin: 30
|
anchors.leftMargin: 30
|
||||||
anchors.top: star.bottom
|
anchors.top: star.bottom
|
||||||
|
|
Loading…
Reference in a new issue