From b2256f7d18c2a40b7b79b848a87ae462d88eeaf6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Sat, 30 Jul 2022 18:09:20 -0400
Subject: [PATCH] misc: avoid overlapping text with TextZoom

GitLab: #779
Change-Id: Ia0b22d12ea6be7a40580ed5508e2aa9fc9482d83
---
 src/app/mainview/components/SmartListItemDelegate.qml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/app/mainview/components/SmartListItemDelegate.qml b/src/app/mainview/components/SmartListItemDelegate.qml
index 90a592156..39b657317 100644
--- a/src/app/mainview/components/SmartListItemDelegate.qml
+++ b/src/app/mainview/components/SmartListItemDelegate.qml
@@ -106,7 +106,7 @@ ItemDelegate {
             // best name
             Text {
                 Layout.fillWidth: true
-                Layout.preferredHeight: 20
+                Layout.minimumHeight: 20
                 Layout.alignment: Qt.AlignVCenter
                 elide: Text.ElideMiddle
                 text: Title === undefined ? "" : Title
@@ -121,7 +121,7 @@ ItemDelegate {
                          && LastInteractionDate !== undefined
                          && interactive
                 Layout.fillWidth: true
-                Layout.preferredHeight: 20
+                Layout.minimumHeight: 20
                 Layout.alignment: Qt.AlignTop
 
                 // last Interaction date
@@ -157,7 +157,7 @@ ItemDelegate {
             }
             Text {
                 Layout.fillWidth: true
-                Layout.preferredHeight: 20
+                Layout.minimumHeight: 20
                 Layout.alignment: Qt.AlignVCenter
                 text: JamiStrings.banned
                 textFormat: TextEdit.PlainText
@@ -190,7 +190,7 @@ ItemDelegate {
             Text {
                 id: callStatusText
 
-                Layout.preferredHeight: 20
+                Layout.minimumHeight: 20
                 Layout.alignment: Qt.AlignRight
                 text: InCall ? UtilsAdapter.getCallStatusStr(CallState) : ""
                 textFormat: TextEdit.PlainText
-- 
GitLab