From 1f8777178ecc3c6fac598a461e8c2c6071dff6ee Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Mon, 13 Feb 2023 09:40:24 -0500 Subject: Limit max width of blurb --- resources/qml/delegates/EncryptionEnabled.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/qml/delegates/EncryptionEnabled.qml b/resources/qml/delegates/EncryptionEnabled.qml index 8be12b04..2e2684e4 100644 --- a/resources/qml/delegates/EncryptionEnabled.qml +++ b/resources/qml/delegates/EncryptionEnabled.qml @@ -14,7 +14,8 @@ Rectangle { required property string username 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 color: Nheko.colors.alternateBase border.color: Nheko.theme.green -- cgit v1.2.3