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 # TODO
- Avatar tooltip can get displayed in front of presence menu
- global presence control - global presence control
- fix members not synced bug - fix members not synced bug

View File

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