From 2b1c9af311749fe520edafaca8da8f603d6c10d2 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 26 Oct 2023 16:43:09 +0200 Subject: More qml cleanups --- resources/qml/dialogs/RoomDirectory.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'resources/qml/dialogs/RoomDirectory.qml') 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 -- cgit 1.5.1