summary refs log tree commit diff
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2023-02-25 22:20:20 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2023-02-28 20:40:22 -0500
commit0e3453660faefdda4cd62b7192fbaa68000c742a (patch)
tree84c1088a255ae08d43a599f9a92f9231c899ca97
parentUse the nheko spinner everywhere (diff)
downloadnheko-0e3453660faefdda4cd62b7192fbaa68000c742a.tar.xz
Prevent long nicks/userids from breaking roomlist layout
Fixes #1297
-rw-r--r--resources/qml/dialogs/RoomMembers.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/resources/qml/dialogs/RoomMembers.qml b/resources/qml/dialogs/RoomMembers.qml
index ea4451bb..1cfbe077 100644
--- a/resources/qml/dialogs/RoomMembers.qml
+++ b/resources/qml/dialogs/RoomMembers.qml
@@ -146,12 +146,14 @@ ApplicationWindow {
 
                         ColumnLayout {
                             spacing: Nheko.paddingSmall
+                            Layout.fillWidth: true
 
                             ElidedLabel {
                                 fullText: model.displayName
                                 color: TimelineManager.userColor(model ? model.mxid : "", del.background.color)
                                 font.pixelSize: fontMetrics.font.pixelSize
                                 elideWidth: del.width - Nheko.paddingMedium * 2 - avatar.width - encryptInd.width
+                                Layout.fillWidth: true
                             }
 
                             ElidedLabel {
@@ -159,14 +161,11 @@ ApplicationWindow {
                                 color: del.hovered ? Nheko.colors.brightText : Nheko.colors.buttonText
                                 font.pixelSize: Math.ceil(fontMetrics.font.pixelSize * 0.9)
                                 elideWidth: del.width - Nheko.paddingMedium * 2 - avatar.width - encryptInd.width
+                                Layout.fillWidth: true
                             }
 
                         }
 
-                        Item {
-                            Layout.fillWidth: true
-                        }
-
                         Image {
                             property bool isAdmin: room.permissions.changeLevel(MtxEvent.PowerLevels) <= model.powerlevel
                             property bool isModerator: room.permissions.redactLevel() <= model.powerlevel