mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-18 01:27:25 +00:00
fix(StatusChatList): Missing space between channels in StatusChatList
- add an extra space for the item height to fix spacing; can't do this using regular `spacing` due to height of collapsed categories - remove dead code Fixes #9657
This commit is contained in:
parent
5281cae198
commit
2a1ea3b0ae
@ -97,15 +97,12 @@ Item {
|
|||||||
statusChatListCategoryItem.setupPopup()
|
statusChatListCategoryItem.setupPopup()
|
||||||
highlighted = true
|
highlighted = true
|
||||||
menuButton.highlighted = true
|
menuButton.highlighted = true
|
||||||
let p = menuButton.mapToItem(statusChatListCategoryItem, menuButton.x, menuButton.y)
|
|
||||||
let menuWidth = categoryPopupMenuSlot.item.width
|
|
||||||
categoryPopupMenuSlot.item.popup()
|
categoryPopupMenuSlot.item.popup()
|
||||||
}
|
}
|
||||||
onAddButtonClicked: {
|
onAddButtonClicked: {
|
||||||
root.categoryAddButtonClicked(categoryId)
|
root.categoryAddButtonClicked(categoryId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
@ -114,7 +111,7 @@ Item {
|
|||||||
id: draggable
|
id: draggable
|
||||||
objectName: model.name
|
objectName: model.name
|
||||||
width: root.width
|
width: root.width
|
||||||
height: model.categoryOpened ? statusChatListItem.height : 0
|
height: model.categoryOpened ? statusChatListItem.height + 4 /*spacing between non-collapsed items*/ : 0
|
||||||
visible: height
|
visible: height
|
||||||
verticalPadding: 2
|
verticalPadding: 2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user