summary refs log tree commit diff
diff options
context:
space:
mode:
authortastytea <tastytea@tastytea.de>2022-02-05 01:34:34 +0100
committertastytea <tastytea@tastytea.de>2022-02-05 01:40:31 +0100
commit9836443d261ab488e58db25bf877c66725b367b0 (patch)
treef3645e048f0bbce5e824afb2be71e49ad0ba67fb
parentAdd maximum width to user name in profile (diff)
downloadnheko-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.
-rw-r--r--resources/qml/dialogs/UserProfile.qml2
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