Fix issues with RommDrawer on mobile
This commit is contained in:
@@ -29,8 +29,6 @@ Kirigami.OverlayDrawer {
|
|||||||
topPadding: 0
|
topPadding: 0
|
||||||
leftPadding: 0
|
leftPadding: 0
|
||||||
rightPadding: 0
|
rightPadding: 0
|
||||||
width: 400
|
|
||||||
implicitWidth: 400
|
|
||||||
contentItem: ColumnLayout {
|
contentItem: ColumnLayout {
|
||||||
implicitWidth: Kirigami.Units.gridUnit * 20
|
implicitWidth: Kirigami.Units.gridUnit * 20
|
||||||
|
|
||||||
@@ -40,7 +38,7 @@ Kirigami.OverlayDrawer {
|
|||||||
FullScreenImage {}
|
FullScreenImage {}
|
||||||
}
|
}
|
||||||
|
|
||||||
ToolBar {
|
Control {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
implicitHeight: infoLayout.implicitHeight
|
implicitHeight: infoLayout.implicitHeight
|
||||||
bottomPadding: Kirigami.Units.largeSpacing
|
bottomPadding: Kirigami.Units.largeSpacing
|
||||||
@@ -73,16 +71,15 @@ Kirigami.OverlayDrawer {
|
|||||||
text: room ? room.displayName : i18n("No name")
|
text: room ? room.displayName : i18n("No name")
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
Flow {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
wrapMode: Label.Wrap
|
|
||||||
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
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
|
id: configButton
|
||||||
icon.name: 'settings-configure'
|
icon.name: 'settings-configure'
|
||||||
text: i18n("Room setting")
|
text: i18n("Room setting")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
@@ -101,18 +98,18 @@ Kirigami.OverlayDrawer {
|
|||||||
Kirigami.FormLayout {
|
Kirigami.FormLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
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 {
|
||||||
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 {
|
Flow {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
spacing: 8
|
spacing: 8
|
||||||
@@ -121,9 +118,6 @@ Kirigami.OverlayDrawer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
wrapMode: Label.Wrap
|
|
||||||
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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user