Improve MembersView when RoomPane collapsed

This commit is contained in:
miruka 2019-12-21 12:46:47 -04:00
parent 44e5de02f8
commit b4df752f8a
3 changed files with 14 additions and 0 deletions

View File

@ -17,6 +17,7 @@ HButton {
readonly property alias additionalInfo: additionalInfo
readonly property alias rightInfo: rightInfo
readonly property alias subtitle: subtitle
readonly property Item loadedImage: imageLoader.item
property alias contextMenu: contextMenuLoader.sourceComponent
@ -28,6 +29,7 @@ HButton {
opacity: tile.contentOpacity
HLoader {
id: imageLoader
sourceComponent: image
}

View File

@ -38,4 +38,11 @@ HTileDelegate {
Behavior on title.color { HColorAnimation {} }
Behavior on contentOpacity { HNumberAnimation {} }
Behavior on spacing { HNumberAnimation {} }
Binding on spacing {
value: (roomPane.minimumSize - loadedImage.width) / 2
when: loadedImage &&
roomPane.width < loadedImage.width + theme.spacing * 2
}
}

View File

@ -30,6 +30,11 @@ HDrawer {
}
}
readonly property alias buttonRepeater: buttonRepeater
readonly property alias swipeView: swipeView
HColumnLayout {
anchors.fill: parent