fix: fix muted chats modal not showing correctly

This commit is contained in:
Jonathan Rainville 2021-01-21 13:07:01 -05:00 committed by Iuri Matias
parent f9699b7ca0
commit 13dc160d11
1 changed files with 5 additions and 11 deletions

View File

@ -19,12 +19,12 @@ ModalPopup {
id: mutedChatsList
anchors.top: parent.top
visible: true
height: childrenRect.height
anchors.left: parent.left
anchors.right: parent.right
model: root.showMutedContacts ? profileModel.mutedContacts : profileModel.mutedChats
delegate: Rectangle {
height: contactImage.height + Style.current.smallPadding * 2
width: parent.width
color: Style.current.transparent
StatusIdenticon {
@ -52,20 +52,14 @@ ModalPopup {
anchors.verticalCenter: parent.verticalCenter
}
StyledText {
StatusButton {
id: unmuteButton
type: "secondary"
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
text: qsTr("Unmute")
font.pixelSize: 15
color: Style.current.primary
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onClicked: {
profileModel.unmuteChannel(model.id)
}
onClicked: {
profileModel.unmuteChannel(model.id)
}
}
}