Avoid strange layout if user name is veeeeeeeery long

This commit is contained in:
Sebastian Wolf 2020-11-22 19:16:11 +01:00
parent ba41125422
commit b26c6e81c2

View file

@ -101,6 +101,8 @@ ListItem {
Text { Text {
id: prologSecondaryText id: prologSecondaryText
font.pixelSize: Theme.fontSizeExtraSmall font.pixelSize: Theme.fontSizeExtraSmall
width: Math.min(implicitWidth, parent.width)
elide: Text.ElideRight
color: Theme.highlightColor color: Theme.highlightColor
textFormat: Text.StyledText textFormat: Text.StyledText
onTruncatedChanged: { onTruncatedChanged: {