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