From 9a4ea07614f6adec89f3e4781ebc90173cc7239c Mon Sep 17 00:00:00 2001 From: Alexander Ivash Date: Tue, 22 May 2018 02:39:55 +0300 Subject: [PATCH] =?UTF-8?q?limit=20avatar=20name=20to=2014=20characters=20?= =?UTF-8?q?+=20=E2=80=A6=20at=20the=20end?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interface/resources/qml/hifi/AvatarApp.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/resources/qml/hifi/AvatarApp.qml b/interface/resources/qml/hifi/AvatarApp.qml index 3bfed15970..c24d807455 100644 --- a/interface/resources/qml/hifi/AvatarApp.qml +++ b/interface/resources/qml/hifi/AvatarApp.qml @@ -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