Skip to content
Snippets Groups Projects
Commit 50003e15 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix display of long room names

parent 745e0e08
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,11 @@ Page {
anchors.fill: parent
PageHeader {
anchors {
left: parent.left
right: parent.right
}
id: header
title: room.roomName()
......
......@@ -84,13 +84,19 @@ Page {
width: mainRow.width - unreadMessages.width
- roomImage.width - 3* Theme.paddingMedium
Label {
anchors {
left: parent.left
right: parent.right
}
id: roomName
text: model.roomName
truncationMode: TruncationMode.Fade
color: Theme.primaryColor
font.pixelSize: Theme.fontSizeLarge
}
Text {
Label {
anchors {
left: parent.left
right: parent.right
......@@ -100,8 +106,9 @@ Page {
text: model.lastMessage
color: unreadNotifications > 0 ? Theme.primaryColor : Theme.secondaryColor
wrapMode: Text.Wrap
elide: Text.ElideRight
truncationMode: TruncationMode.Fade
maximumLineCount: 3
font.pixelSize: Theme.fontSizeExtraSmall
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment