From 15ce0211da3f63b96424994dc803de46454dffd5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 19 Jun 2023 21:33:10 +0200 Subject: [PATCH] Fix some sizes in layouts --- resources/qml/ImageButton.qml | 2 +- resources/qml/voip/PlaceCall.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml index 84967ddb..ddc0b7d8 100644 --- a/resources/qml/ImageButton.qml +++ b/resources/qml/ImageButton.qml @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: GPL-3.0-or-later -pragma ComponentBehavior +pragma ComponentBehavior: Bound import "./ui" import QtQuick 2.3 import QtQuick.Controls 2.3 diff --git a/resources/qml/voip/PlaceCall.qml b/resources/qml/voip/PlaceCall.qml index 2d4c46f8..c0724828 100644 --- a/resources/qml/voip/PlaceCall.qml +++ b/resources/qml/voip/PlaceCall.qml @@ -67,8 +67,8 @@ Popup { Avatar { Layout.rightMargin: cameraCombo.visible ? 16 : 64 - width: Nheko.avatarSize - height: Nheko.avatarSize + Layout.preferredWidth: Nheko.avatarSize + Layout.preferredHeight: Nheko.avatarSize url: room.roomAvatarUrl.replace("mxc://", "image://MxcImage/") displayName: room.roomName roomid: room.roomId