Simplify layout
This commit is contained in:
@@ -71,15 +71,19 @@ Kirigami.OverlayDrawer {
|
||||
wrapMode: Label.Wrap
|
||||
text: room ? room.displayName : i18n("No name")
|
||||
}
|
||||
|
||||
Flow {
|
||||
Layout.fillWidth: true
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
text: room && room.canonicalAlias ? room.canonicalAlias : i18n("No Canonical Alias")
|
||||
}
|
||||
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
text: room ? i18np("%1 Member", "%1 Members", room.totalMemberCount) : i18n("No Member Count")
|
||||
color: Kirigami.Theme.disabledTextColor
|
||||
height: configButton.implicitHeight
|
||||
}
|
||||
Button {
|
||||
Layout.fillWidth: true
|
||||
id: configButton
|
||||
icon.name: 'settings-configure'
|
||||
text: i18n("Room setting")
|
||||
@@ -90,27 +94,19 @@ Kirigami.OverlayDrawer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.Separator {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Kirigami.FormLayout {
|
||||
Layout.fillWidth: true
|
||||
Label {
|
||||
Layout.maximumWidth: Kirigami.Units.gridUnit * 20
|
||||
Label {
|
||||
Kirigami.FormData.label: i18n("Main Alias:")
|
||||
text: room && room.canonicalAlias ? room.canonicalAlias :i18n("No Canonical Alias")
|
||||
}
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
Kirigami.FormData.label: i18n("Topic:")
|
||||
text: room && room.topic ? room.topic : i18n("No Topic")
|
||||
elide: Text.ElideRight
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Reference in New Issue
Block a user