diff --git a/resources/qml/dialogs/UserProfile.qml b/resources/qml/dialogs/UserProfile.qml index 73c4e68b..5f58f705 100644 --- a/resources/qml/dialogs/UserProfile.qml +++ b/resources/qml/dialogs/UserProfile.qml @@ -138,6 +138,9 @@ ApplicationWindow { color: TimelineManager.userColor(profile.userid, Nheko.colors.window) font.bold: true Layout.alignment: Qt.AlignHCenter + Layout.maximumWidth: parent.width - (Nheko.paddingSmall * 2) - usernameChangeButton.anchors.leftMargin - (usernameChangeButton.width * 2) + horizontalAlignment: TextInput.AlignHCenter + wrapMode: TextInput.Wrap selectByMouse: true onAccepted: { profile.changeUsername(displayUsername.text); @@ -145,6 +148,7 @@ ApplicationWindow { } ImageButton { + id: usernameChangeButton visible: profile.isSelf anchors.leftMargin: Nheko.paddingSmall anchors.left: displayUsername.right