diff options
author | tastytea <tastytea@tastytea.de> | 2022-02-05 01:34:34 +0100 |
---|---|---|
committer | tastytea <tastytea@tastytea.de> | 2022-02-05 01:40:31 +0100 |
commit | 9836443d261ab488e58db25bf877c66725b367b0 (patch) | |
tree | f3645e048f0bbce5e824afb2be71e49ad0ba67fb /resources/qml/dialogs/UserProfile.qml | |
parent | Add maximum width to user name in profile (diff) | |
download | nheko-9836443d261ab488e58db25bf877c66725b367b0.tar.xz |
Add maximum width to room name in user profile
Layout is: spacing | text | spacing | button | spacing Therefore we subtract 3x spacing and 1x button(16) from width.
Diffstat (limited to 'resources/qml/dialogs/UserProfile.qml')
-rw-r--r-- | resources/qml/dialogs/UserProfile.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/qml/dialogs/UserProfile.qml b/resources/qml/dialogs/UserProfile.qml index 5f58f705..60f1eb8d 100644 --- a/resources/qml/dialogs/UserProfile.qml +++ b/resources/qml/dialogs/UserProfile.qml @@ -187,6 +187,8 @@ ApplicationWindow { text: qsTr("Room: %1").arg(profile.room ? profile.room.roomName : "") ToolTip.text: qsTr("This is a room-specific profile. The user's name and avatar may be different from their global versions.") ToolTip.visible: ma.hovered + Layout.maximumWidth: parent.parent.width - (parent.spacing * 3) - 16 + horizontalAlignment: TextEdit.AlignHCenter HoverHandler { id: ma |