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 { HInteractiveRectangle {
id: roomDelegate id: roomDelegate
width: roomList.width width: roomList.width
height: childrenRect.height height: rowLayout.height
color: theme.sidePane.room.background color: theme.sidePane.room.background
TapHandler { onTapped: pageStack.showRoom(userId, model.room_id) } TapHandler { onTapped: pageStack.showRoom(userId, model.room_id) }
Row {
width: parent.width - leftPadding * 2
padding: sidePane.currentSpacing / 2
leftPadding: sidePane.currentSpacing
rightPadding: 0
HRowLayout { 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 spacing: sidePane.currentSpacing
HRoomAvatar { HRoomAvatar {
@ -71,5 +69,4 @@ HInteractiveRectangle {
} }
} }
} }
}
} }