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
This commit is contained in:
Lukáš Tinkl 2022-07-08 10:11:10 +02:00 committed by Michał Cieślak
parent e268edb988
commit cd2bb8c165
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,7 @@ Column {
model: statusChatList.model model: statusChatList.model
delegate: Item { delegate: Item {
id: draggable id: draggable
width: statusChatListItem.width width: statusChatList.width
height: statusChatListItem.height height: statusChatListItem.height
property alias chatListItem: statusChatListItem property alias chatListItem: statusChatListItem
@ -93,6 +93,7 @@ Column {
StatusChatListItem { StatusChatListItem {
id: statusChatListItem id: statusChatListItem
width: parent.width
opacity: dragSensor.active ? 0.0 : 1.0 opacity: dragSensor.active ? 0.0 : 1.0
originalOrder: model.position originalOrder: model.position
chatId: model.itemId chatId: model.itemId