Fix RoomDelegates v padding when collapsed

This commit is contained in:
miruka 2019-08-11 22:57:36 -04:00
parent 3c35616eaa
commit 9924b0565a

View File

@ -6,19 +6,17 @@ import "../utils.js" as Utils
HInteractiveRectangle {
id: roomDelegate
width: roomList.width
height: childrenRect.height
height: rowLayout.height
color: theme.sidePane.room.background
TapHandler { onTapped: pageStack.showRoom(userId, model.room_id) }
Row {
width: parent.width - leftPadding * 2
padding: sidePane.currentSpacing / 2
leftPadding: sidePane.currentSpacing
rightPadding: 0
HRowLayout {
width: parent.width
id: rowLayout
x: sidePane.currentSpacing
width: parent.width - sidePane.currentSpacing * 1.5
height: roomLabel.height + subtitleLabel.height +
sidePane.currentSpacing / 1.5
spacing: sidePane.currentSpacing
HRoomAvatar {
@ -72,4 +70,3 @@ HInteractiveRectangle {
}
}
}
}