From 1bd7d75d294237999a506159fe33b1f3769ce8b9 Mon Sep 17 00:00:00 2001 From: cberthet <capucine.berthet@savoirfairelinux.com> Date: Tue, 26 Sep 2023 12:01:03 -0400 Subject: [PATCH] Fingerprint : prevent overflow when zooming GitLab: #1347 Change-Id: I2b1862b1df7b2bcc7c173a04b50c006d861241d2 --- src/app/commoncomponents/JamiIdentifier.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/commoncomponents/JamiIdentifier.qml b/src/app/commoncomponents/JamiIdentifier.qml index f583d2169..6264651ca 100644 --- a/src/app/commoncomponents/JamiIdentifier.qml +++ b/src/app/commoncomponents/JamiIdentifier.qml @@ -24,6 +24,7 @@ import net.jami.Constants 1.1 Item { id: jamiId + property bool slimDisplay: true property color backgroundColor: JamiTheme.welcomeBlockColor property color contentColor: JamiTheme.tintedBlue @@ -104,6 +105,8 @@ Item { visible: usernameTextEdit.readOnly Layout.alignment: Qt.AlignVCenter Layout.rightMargin: JamiTheme.pushButtonMargins + Layout.maximumWidth: leftRect.width - 50 + elide: Text.ElideRight color: jamiId.contentColor font.pixelSize : text.length > 16 ? JamiTheme.jamiIdSmallFontSize : JamiTheme.bigFontSize property string registeredName: CurrentAccount.registeredName -- GitLab