fix(UserListPanel): minor cleanup
- fix margins - fix some warnings - drop dead/duplicate code
This commit is contained in:
parent
8603bb51e8
commit
0d43852394
|
@ -44,15 +44,14 @@ Item {
|
|||
StatusListView {
|
||||
id: userListView
|
||||
objectName: "userListPanel"
|
||||
clip: true
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
policy: ScrollBar.AsNeeded
|
||||
}
|
||||
|
||||
anchors {
|
||||
top: titleText.bottom
|
||||
topMargin: Style.current.padding
|
||||
left: parent.left
|
||||
leftMargin: Style.current.halfPadding
|
||||
right: parent.right
|
||||
rightMargin: Style.current.halfPadding
|
||||
bottom: parent.bottom
|
||||
bottomMargin: Style.current.bigPadding
|
||||
}
|
||||
|
@ -73,10 +72,7 @@ Item {
|
|||
section.property: "onlineStatus"
|
||||
section.delegate: (root.width > 58) ? sectionDelegateComponent : null
|
||||
delegate: StatusMemberListItem {
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 8
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 8
|
||||
width: ListView.view.width
|
||||
nickName: model.localNickname
|
||||
userName: model.displayName
|
||||
pubKey: Utils.getCompressedPk(model.pubKey)
|
||||
|
|
Loading…
Reference in New Issue