mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 20:18:53 +03:00
Fix joined spaces having no description
This commit is contained in:
parent
224d845af3
commit
791cb660b5
1 changed files with 9 additions and 2 deletions
|
@ -195,10 +195,13 @@ Item {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
spacing: Nheko.paddingMedium
|
spacing: Nheko.paddingMedium
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
MatrixText {
|
MatrixText {
|
||||||
|
Layout.preferredWidth: implicitWidth
|
||||||
|
horizontalAlignment: TextEdit.AlignRight
|
||||||
font.pixelSize: 24
|
font.pixelSize: 24
|
||||||
text: !(roomPreview?.isFetched ?? false) ? qsTr("No preview available") : preview.roomName
|
text: (!room && !(roomPreview?.isFetched ?? false)) ? qsTr("No preview available") : preview.roomName
|
||||||
}
|
}
|
||||||
ImageButton {
|
ImageButton {
|
||||||
ToolTip.text: qsTr("Settings")
|
ToolTip.text: qsTr("Settings")
|
||||||
|
@ -214,8 +217,10 @@ Item {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
spacing: Nheko.paddingMedium
|
spacing: Nheko.paddingMedium
|
||||||
visible: !!room
|
visible: !!room
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
MatrixText {
|
MatrixText {
|
||||||
|
Layout.preferredWidth: implicitWidth
|
||||||
text: qsTr("%n member(s)", "", room ? room.roomMemberCount : 0)
|
text: qsTr("%n member(s)", "", room ? room.roomMemberCount : 0)
|
||||||
}
|
}
|
||||||
ImageButton {
|
ImageButton {
|
||||||
|
@ -232,13 +237,14 @@ Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.leftMargin: Nheko.paddingLarge
|
Layout.leftMargin: Nheko.paddingLarge
|
||||||
Layout.rightMargin: Nheko.paddingLarge
|
Layout.rightMargin: Nheko.paddingLarge
|
||||||
|
Layout.maximumHeight: timelineView.height / 3
|
||||||
|
|
||||||
TextArea {
|
TextArea {
|
||||||
background: null
|
background: null
|
||||||
horizontalAlignment: TextEdit.AlignHCenter
|
horizontalAlignment: TextEdit.AlignHCenter
|
||||||
readOnly: true
|
readOnly: true
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
text: (roomPreview?.isFetched ?? false) ? TimelineManager.escapeEmoji(preview.roomTopic) : qsTr("This room is possibly inaccessible. If this room is private, you should remove it from this community.")
|
text: (room || (roomPreview?.isFetched ?? false)) ? TimelineManager.escapeEmoji(preview.roomTopic) : qsTr("This room is possibly inaccessible. If this room is private, you should remove it from this community.")
|
||||||
textFormat: TextEdit.RichText
|
textFormat: TextEdit.RichText
|
||||||
wrapMode: TextEdit.WordWrap
|
wrapMode: TextEdit.WordWrap
|
||||||
|
|
||||||
|
@ -280,6 +286,7 @@ Item {
|
||||||
}
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
Layout.fillWidth: true
|
||||||
spacing: Nheko.paddingMedium
|
spacing: Nheko.paddingMedium
|
||||||
visible: roomPreview && roomPreview.isInvite && reasonField.showReason
|
visible: roomPreview && roomPreview.isInvite && reasonField.showReason
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue