Fix RoomSidePane spacing on collapse
This commit is contained in:
parent
2bb08874d1
commit
2e5b846695
|
@ -112,7 +112,7 @@ HColumnLayout {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
collapsed: width < Layout.minimumWidth + 8
|
collapsed: width < HStyle.avatar.size + 8
|
||||||
|
|
||||||
property bool wasSnapped: false
|
property bool wasSnapped: false
|
||||||
property int referenceWidth: roomHeader.buttonsWidth
|
property int referenceWidth: roomHeader.buttonsWidth
|
||||||
|
|
|
@ -3,20 +3,21 @@ import QtQuick.Layouts 1.3
|
||||||
import "../../Base"
|
import "../../Base"
|
||||||
|
|
||||||
HColumnLayout {
|
HColumnLayout {
|
||||||
property int normalSpacing: 8
|
property bool collapsed: false
|
||||||
|
property int normalSpacing: collapsed ? 0 : 8
|
||||||
|
|
||||||
|
Behavior on normalSpacing {
|
||||||
|
NumberAnimation { duration: HStyle.animationDuration }
|
||||||
|
}
|
||||||
|
|
||||||
HListView {
|
HListView {
|
||||||
id: memberList
|
id: memberList
|
||||||
|
|
||||||
spacing: normalSpacing
|
spacing: normalSpacing
|
||||||
topMargin: spacing
|
topMargin: normalSpacing
|
||||||
bottomMargin: topMargin
|
bottomMargin: normalSpacing
|
||||||
Layout.leftMargin: roomSidePane.collapsed ? 0 : normalSpacing
|
Layout.leftMargin: normalSpacing
|
||||||
Layout.rightMargin: Layout.leftMargin
|
Layout.rightMargin: normalSpacing
|
||||||
|
|
||||||
Behavior on spacing {
|
|
||||||
NumberAnimation { duration: HStyle.animationDuration }
|
|
||||||
}
|
|
||||||
|
|
||||||
model: chatPage.roomInfo.sortedMembers
|
model: chatPage.roomInfo.sortedMembers
|
||||||
delegate: MemberDelegate {}
|
delegate: MemberDelegate {}
|
||||||
|
|
|
@ -10,5 +10,6 @@ HRectangle {
|
||||||
|
|
||||||
MembersView {
|
MembersView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
collapsed: parent.collapsed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user