fix: channel description width

This commit is contained in:
Richard Ramos 2021-07-01 14:58:05 -04:00 committed by Iuri Matias
parent 516d1974b2
commit e347255df4
1 changed files with 2 additions and 2 deletions

View File

@ -115,8 +115,7 @@ Item {
StyledText { StyledText {
id: chatInfo id: chatInfo
color: Style.current.secondaryText color: Style.current.secondaryText
wrapMode: Text.Wrap width: topBar.childrenRect.width - 200
width: parent.width
elide: Text.ElideRight elide: Text.ElideRight
text: { text: {
if (root.chatType === Constants.chatTypeCommunity) { if (root.chatType === Constants.chatTypeCommunity) {
@ -145,6 +144,7 @@ Item {
font.pixelSize: 12 font.pixelSize: 12
anchors.top: chatName.bottom anchors.top: chatName.bottom
anchors.topMargin: 2 anchors.topMargin: 2
anchors.left: chatName.left
} }
Item { Item {