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

View File

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