Fix date and top padding when loading previous msg

This commit is contained in:
miruka
2019-04-20 03:29:24 -04:00
parent 99c06e4034
commit b33f5f1d34
3 changed files with 27 additions and 12 deletions

View File

@@ -3,10 +3,11 @@ import "../base" as Base
Base.HLabel {
text: date_time.toLocaleDateString()
width: rootCol.width
width: messageDelegate.width
horizontalAlignment: Text.AlignHCenter
topPadding: rootCol.isFirstMessage ? 0 : rootCol.standardSpacing
bottomPadding: rootCol.standardSpacing
topPadding: messageDelegate.isFirstMessage ?
0 : messageDelegate.standardSpacing
bottomPadding: messageDelegate.standardSpacing
font.pixelSize: normalSize * 1.1
color: "darkolivegreen"
}