Fix RoomDelegates v padding when collapsed
This commit is contained in:
parent
3c35616eaa
commit
9924b0565a
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user