Try to fix variable timestamp width

This commit is contained in:
Nicolas Werner 2020-08-07 17:31:58 +02:00
parent b972d827cb
commit 1e9efa3072

View File

@ -130,6 +130,7 @@ Item {
Label { Label {
Layout.alignment: Qt.AlignRight | Qt.AlignTop Layout.alignment: Qt.AlignRight | Qt.AlignTop
text: model.timestamp.toLocaleTimeString("HH:mm") text: model.timestamp.toLocaleTimeString("HH:mm")
width: Math.max(implicitWidth, text.length*fontMetrics.maximumCharacterWidth)
color: inactiveColors.text color: inactiveColors.text
MouseArea{ MouseArea{