Commit a2f02609 authored by LNJ's avatar LNJ Committed by Jonah Brüchert

RosterPage: Abbreviate long contact names and messages

parent 91c64859
......@@ -57,18 +57,22 @@ Kirigami.SwipeListItem {
}
// right side
ColumnLayout {
// top
RowLayout {
// contact name
Kirigami.Heading {
text: name
level: 3
Layout.fillWidth: true
}
spacing: Kirigami.Units.smallSpacing
// contact name
Kirigami.Heading {
text: name
elide: Text.ElideRight
maximumLineCount: 1
level: 3
Layout.fillWidth: true
Layout.maximumHeight: Kirigami.Units.gridUnit * 1.5
}
// bottom
Controls.Label {
Layout.fillWidth: true
elide: Text.ElideRight
maximumLineCount: 1
text: kaidan.removeNewLinesFromString(lastMessage);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment