From cd2bb8c165d2527a333d8b7ab3e80748b8bcdd45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Fri, 8 Jul 2022 10:11:10 +0200 Subject: [PATCH] fix(StatusChatList): StatusChatListItem should follow parent's width both StatusChatList and StatusChatListItem have the same hardcoded width of 288, so if we want to make the former smaller, StatusChatListItem has to obey that, otherwise it's cut on its right side in status-desktop Status Desktop's new designs have a smaller width (272), this fix is needed for status-im/status-desktop#6343 --- ui/StatusQ/src/StatusQ/Components/StatusChatList.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml b/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml index 8c4061e523..59cf567022 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusChatList.qml @@ -40,7 +40,7 @@ Column { model: statusChatList.model delegate: Item { id: draggable - width: statusChatListItem.width + width: statusChatList.width height: statusChatListItem.height property alias chatListItem: statusChatListItem @@ -93,6 +93,7 @@ Column { StatusChatListItem { id: statusChatListItem + width: parent.width opacity: dragSensor.active ? 0.0 : 1.0 originalOrder: model.position chatId: model.itemId