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:
parent
c921cf7280
commit
7363899a96
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue