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:
Lukáš Tinkl 2023-02-28 17:29:33 +01:00 committed by Alexandra Betouni
parent 5281cae198
commit 2a1ea3b0ae
1 changed files with 1 additions and 4 deletions

View File

@ -97,15 +97,12 @@ Item {
statusChatListCategoryItem.setupPopup()
highlighted = true
menuButton.highlighted = true
let p = menuButton.mapToItem(statusChatListCategoryItem, menuButton.x, menuButton.y)
let menuWidth = categoryPopupMenuSlot.item.width
categoryPopupMenuSlot.item.popup()
}
onAddButtonClicked: {
root.categoryAddButtonClicked(categoryId)
}
}
}
Component {
@ -114,7 +111,7 @@ Item {
id: draggable
objectName: model.name
width: root.width
height: model.categoryOpened ? statusChatListItem.height : 0
height: model.categoryOpened ? statusChatListItem.height + 4 /*spacing between non-collapsed items*/ : 0
visible: height
verticalPadding: 2