Refine mobileform settings

Numerous refinements to the new mobileform setting pages 
- Ensure left and right padding at the top level is 0 for mobile
- Centre align the avatar in the account editor page and add tooltip to button
- Fix the bubble/compact mode setting so that it fits when thin, i.e on mobile
- Fix the loading placeholder in device settings
This commit is contained in:
James Graham
2022-11-20 16:30:54 +00:00
parent be86eec99c
commit 869bb5ad87
6 changed files with 35 additions and 7 deletions

View File

@@ -25,12 +25,13 @@ Kirigami.ScrollablePage {
MobileForm.FormCardHeader {
title: i18n("Devices")
}
Kirigami.LoadingPlaceholder {
Layout.alignment: Qt.AlignHCenter
visible: parent.count === 0 // We can assume 0 means loading since there is at least one device
MobileForm.AbstractFormDelegate {
Layout.fillWidth: true
visible: deviceRepeater.count === 0 // We can assume 0 means loading since there is at least one device
contentItem: Kirigami.LoadingPlaceholder { }
}
Repeater {
id: deviceRepeater
model: DevicesModel {
id: devices
}