diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-26 16:43:09 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-26 20:52:18 +0200 |
commit | 2b1c9af311749fe520edafaca8da8f603d6c10d2 (patch) | |
tree | 8003252cb2c52195ac89a36ad96dd8de47ac9c7d /resources/qml/dialogs/RoomDirectory.qml | |
parent | Merge pull request #1539 from Nheko-Reborn/issue1410 (diff) | |
download | nheko-2b1c9af311749fe520edafaca8da8f603d6c10d2.tar.xz |
More qml cleanups
Diffstat (limited to 'resources/qml/dialogs/RoomDirectory.qml')
-rw-r--r-- | resources/qml/dialogs/RoomDirectory.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/qml/dialogs/RoomDirectory.qml b/resources/qml/dialogs/RoomDirectory.qml index 97943e93..dbf3b459 100644 --- a/resources/qml/dialogs/RoomDirectory.qml +++ b/resources/qml/dialogs/RoomDirectory.qml @@ -57,8 +57,9 @@ ApplicationWindow { Layout.alignment: Qt.AlignVCenter Layout.rightMargin: Nheko.paddingMedium - width: avatarSize - height: avatarSize + Layout.preferredWidth: roomDirDelegate.avatarSize + Layout.preferredHeight: roomDirDelegate.avatarSize + url: model.avatarUrl.replace("mxc://", "image://MxcImage/") roomid: model.roomid displayName: model.name @@ -70,8 +71,7 @@ ApplicationWindow { columns: 2 Layout.alignment: Qt.AlignLeft - width: parent.width - avatar.width - Layout.preferredWidth: parent.width - avatar.width + Layout.preferredWidth: parent.width - roomAvatar.width ElidedLabel { Layout.row: 0 |