Skip to content
Snippets Groups Projects
Commit eb003449 authored by Fadi Shehadeh's avatar Fadi Shehadeh Committed by Sébastien Blin
Browse files

swarm creation: fix wrapping and string for info

- changed label to Text for wrap
- changed adding 8 to 7 people

Change-Id: Ia7983615e324dff6820e79a56eb561621106276f
parent 09ed9e25
No related branches found
No related tags found
No related merge requests found
...@@ -787,7 +787,7 @@ Item { ...@@ -787,7 +787,7 @@ Item {
property string none: qsTr("None") property string none: qsTr("None")
// NewSwarmPage // NewSwarmPage
property string youCanAdd8: qsTr("You can add 8 people in the swarm") property string youCanAdd7: qsTr("You can add 7 people in the swarm")
property string youCanAddMore: qsTr("You can add %1 more people in the swarm") property string youCanAddMore: qsTr("You can add %1 more people in the swarm")
property string createTheSwarm: qsTr("Create the swarm") property string createTheSwarm: qsTr("Create the swarm")
property string goToConversation: qsTr("Go to conversation") property string goToConversation: qsTr("Go to conversation")
......
...@@ -345,16 +345,20 @@ Rectangle { ...@@ -345,16 +345,20 @@ Rectangle {
spacing: 4 spacing: 4
Label { Text {
font.bold: true font.bold: true
font.pointSize: JamiTheme.contactEventPointSize font.pointSize: JamiTheme.contactEventPointSize
Layout.margins: 16 Layout.margins: 16
Layout.maximumHeight: 24 Layout.maximumHeight: 24
Layout.alignment: Qt.AlignTop
Layout.fillWidth: true
wrapMode: Text.Wrap
text: { text: {
if (highlightedMembers.length === 0) if (highlightedMembers.length === 0)
return JamiStrings.youCanAdd8 return JamiStrings.youCanAdd7
return JamiStrings.youCanAddMore.arg(7 - Math.min(highlightedMembers.length, 7)) return JamiStrings.youCanAddMore.arg(7 - Math.min(highlightedMembers.length, 7))
} }
color: JamiTheme.textColor color: JamiTheme.textColor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment