mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
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.
This commit is contained in:
parent
721c315be2
commit
9836443d26
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue