Use layout margin instead of Item after Daybreak

This commit is contained in:
miruka 2020-07-18 15:02:19 -04:00
parent 1dff7d676e
commit d4fb38fd1a
2 changed files with 5 additions and 9 deletions

View File

@ -1,5 +1,7 @@
# TODO
- Avatar tooltip can get displayed in front of presence menu
- global presence control
- fix members not synced bug

View File

@ -94,8 +94,8 @@ HColumnLayout {
Item {
Layout.fillWidth: true
Layout.preferredHeight:
model.event_type === "RoomCreateEvent" ? 0 : separationSpacing
visible: model.event_type !== "RoomCreateEvent"
Layout.preferredHeight: separationSpacing
}
Daybreak {
@ -103,13 +103,7 @@ HColumnLayout {
Layout.fillWidth: true
Layout.minimumWidth: parent.width
}
Item {
visible: dayBreak
Layout.fillWidth: true
Layout.preferredHeight: separationSpacing
Layout.bottomMargin: separationSpacing
}
EventContent {