mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-29 07:47:28 +00:00
fix(ChatLayout): ensure channel name is vertically centered
This was originally reported in https://github.com/status-im/StatusQ/issues/427, however it turns out that the underlying component already handles this case correctly. The reason the channel name is not vertically centered inside Status Desktop, is because the returned value of `XSS.filterXss()` for the `subTitle` is never an empty string. Trimming the return value fixes this.
This commit is contained in:
parent
77bde47de0
commit
71ab9cebcf
@ -179,7 +179,7 @@ Item {
|
||||
//% "1 member"
|
||||
return qsTrId("1-member");
|
||||
case Constants.chatTypeCommunity:
|
||||
return Utils.linkifyAndXSS(chatsModel.channelView.activeChannel.description)
|
||||
return Utils.linkifyAndXSS(chatsModel.channelView.activeChannel.description).trim()
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user