Skip to content

Commit 4b8f3da

Browse files
Fix: MMInfoBox text elide hide fix (#4173)
1 parent ed5e97c commit 4b8f3da

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/qml/account/MMCreateWorkspacePage.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ MMPage {
110110

111111
title: qsTr( "A tip from us" )
112112
description: qsTr( "A good candidate for a workspace name is the name of your team or organisation" )
113+
descriptionMaxLines: 3
113114

114115
imageSource: __style.bubbleImage
115116
}

app/qml/components/MMInfoBox.qml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Rectangle {
1717
property alias title: titleText.text
1818
property alias description: descriptionText.text
1919

20+
property int descriptionMaxLines: 2
21+
2022
property string linkText
2123

2224
property color textColor: __style.deepOceanColor
@@ -90,7 +92,7 @@ Rectangle {
9092
color: root.textColor
9193

9294
wrapMode: Label.Wrap
93-
maximumLineCount: 2
95+
maximumLineCount: descriptionMaxLines
9496
elide: Text.ElideRight
9597

9698
lineHeight: __style.fontLineHeight24

0 commit comments

Comments
 (0)