Improve MembersView when RoomPane collapsed
This commit is contained in:
		@@ -17,6 +17,7 @@ HButton {
 | 
				
			|||||||
    readonly property alias additionalInfo: additionalInfo
 | 
					    readonly property alias additionalInfo: additionalInfo
 | 
				
			||||||
    readonly property alias rightInfo: rightInfo
 | 
					    readonly property alias rightInfo: rightInfo
 | 
				
			||||||
    readonly property alias subtitle: subtitle
 | 
					    readonly property alias subtitle: subtitle
 | 
				
			||||||
 | 
					    readonly property Item loadedImage: imageLoader.item
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    property alias contextMenu: contextMenuLoader.sourceComponent
 | 
					    property alias contextMenu: contextMenuLoader.sourceComponent
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -28,6 +29,7 @@ HButton {
 | 
				
			|||||||
        opacity: tile.contentOpacity
 | 
					        opacity: tile.contentOpacity
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        HLoader {
 | 
					        HLoader {
 | 
				
			||||||
 | 
					            id: imageLoader
 | 
				
			||||||
            sourceComponent: image
 | 
					            sourceComponent: image
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,4 +38,11 @@ HTileDelegate {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    Behavior on title.color { HColorAnimation {} }
 | 
					    Behavior on title.color { HColorAnimation {} }
 | 
				
			||||||
    Behavior on contentOpacity { HNumberAnimation {} }
 | 
					    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
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,6 +30,11 @@ HDrawer {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    readonly property alias buttonRepeater: buttonRepeater
 | 
				
			||||||
 | 
					    readonly property alias swipeView: swipeView
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    HColumnLayout {
 | 
					    HColumnLayout {
 | 
				
			||||||
        anchors.fill: parent
 | 
					        anchors.fill: parent
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user