fix(@desktop/chatMembersList) Increased minimum width in chat members list

*Also removed redundant Rectangles

Depends on: https://github.com/status-im/StatusQ/pull/348

Closes #3284
This commit is contained in:
Alexandra Betouni 2021-08-26 15:04:47 +03:00 committed by Iuri Matias
parent 118b21543c
commit f47ddbc955
2 changed files with 16 additions and 24 deletions

View File

@ -25,18 +25,13 @@ Item {
reactionModel: EmojiReactions { }
}
Rectangle {
anchors.fill: parent
color: Style.current.secondaryMenuBackground
}
StyledText {
id: titleText
anchors.top: parent.top
anchors.topMargin: Style.current.padding
anchors.left: parent.left
anchors.leftMargin: Style.current.padding
opacity: (root.width > 50) ? 1.0 : 0.0
opacity: (root.width > 58) ? 1.0 : 0.0
visible: (opacity > 0.1)
font.pixelSize: Style.current.primaryTextFontSize
//% "Members"

View File

@ -19,12 +19,6 @@ Item {
anchors.fill: parent
property var userList
property var currentTime
Rectangle {
anchors.fill: parent
color: Style.current.secondaryMenuBackground
}
property QtObject community: chatsModel.communities.activeCommunity
StyledText {
@ -33,7 +27,7 @@ Item {
anchors.topMargin: Style.current.padding
anchors.left: parent.left
anchors.leftMargin: Style.current.padding
opacity: (root.width > 50) ? 1.0 : 0.0
opacity: (root.width > 58) ? 1.0 : 0.0
visible: (opacity > 0.1)
font.pixelSize: Style.current.primaryTextFontSize
font.bold: true
@ -50,23 +44,26 @@ Item {
topMargin: Style.current.padding
left: parent.left
right: parent.right
rightMargin: Style.current.padding
rightMargin: Style.current.halfPadding
bottom: parent.bottom
bottomMargin: Style.current.bigPadding
}
boundsBehavior: Flickable.StopAtBounds
model: userListDelegate
section.property: "online"
section.delegate: Item {
width: parent.width
height: 24
StyledText {
anchors.fill: parent
anchors.leftMargin: Style.current.padding
font.pixelSize: Style.current.additionalTextSize
color: Style.current.darkGrey
text: section === 'true' ? qsTr("Online") : qsTr("Offline")
section.delegate: (root.width > 58) ? sectionDelegateComponent : null
Component {
id: sectionDelegateComponent
Item {
width: parent.width
height: 24
StyledText {
anchors.fill: parent
anchors.leftMargin: Style.current.padding
font.pixelSize: Style.current.additionalTextSize
color: Style.current.darkGrey
text: section === 'true' ? qsTr("Online") : qsTr("Offline")
}
}
}
}