Limit max width of blurb

This commit is contained in:
Loren Burkholder 2023-02-13 09:40:24 -05:00
parent 707af2c11d
commit 1f8777178e

View file

@ -14,7 +14,8 @@ Rectangle {
required property string username required property string username
radius: fontMetrics.lineSpacing / 2 + Nheko.paddingMedium radius: fontMetrics.lineSpacing / 2 + Nheko.paddingMedium
width: parent.width ? parent.width : 0 width: parent.width ? Math.min(parent.width, 700) : 0
anchors.horizontalCenter: parent.horizontalCenter
height: contents.implicitHeight + Nheko.paddingMedium * 2 height: contents.implicitHeight + Nheko.paddingMedium * 2
color: Nheko.colors.alternateBase color: Nheko.colors.alternateBase
border.color: Nheko.theme.green border.color: Nheko.theme.green