Fix remaining issues with RommDrawer

This commit is contained in:
Carl Schwan
2020-11-18 17:17:43 +01:00
parent d6c5373f6a
commit 3a6f1da1f9

View File

@@ -30,6 +30,7 @@ Kirigami.OverlayDrawer {
leftPadding: 0 leftPadding: 0
rightPadding: 0 rightPadding: 0
contentItem: ColumnLayout { contentItem: ColumnLayout {
id: columnLayout
implicitWidth: Kirigami.Units.gridUnit * 20 implicitWidth: Kirigami.Units.gridUnit * 20
Component { Component {
@@ -97,11 +98,13 @@ Kirigami.OverlayDrawer {
Kirigami.FormLayout { Kirigami.FormLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.maximumWidth: Kirigami.Units.gridUnit * 20
Label { Label {
Kirigami.FormData.label: i18n("Main Alias:") Kirigami.FormData.label: i18n("Main Alias:")
text: room && room.canonicalAlias ? room.canonicalAlias :i18n("No Canonical Alias") text: room && room.canonicalAlias ? room.canonicalAlias :i18n("No Canonical Alias")
} }
Label { Label {
Layout.fillWidth: true
Kirigami.FormData.label: i18n("Topic:") Kirigami.FormData.label: i18n("Topic:")
text: room && room.topic ? room.topic : i18n("No Topic") text: room && room.topic ? room.topic : i18n("No Topic")
elide: Text.ElideRight elide: Text.ElideRight
@@ -109,7 +112,7 @@ Kirigami.OverlayDrawer {
} }
} }
Flow { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
spacing: 8 spacing: 8
@@ -118,6 +121,7 @@ Kirigami.OverlayDrawer {
} }
Label { Label {
Layout.fillWidth: true
text: room ? i18np("%1 Member", "%1 Members", room.totalMemberCount) : i18n("No Member Count") text: room ? i18np("%1 Member", "%1 Members", room.totalMemberCount) : i18n("No Member Count")
} }
@@ -133,6 +137,10 @@ Kirigami.OverlayDrawer {
} }
} }
Kirigami.Separator {
Layout.fillWidth: true
}
ScrollView { ScrollView {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true