[#2563] Fixed hover over Join button has wrong shape

For performance reasons clipping doesn't work
with rounded corners - wrapping Join button in
an Item and apply clipping there instead

Closes #2563
This commit is contained in:
Alexandra Betouni 2021-07-20 15:08:36 +03:00 committed by Iuri Matias
parent 076a5bc5b7
commit 7ac63b4451
1 changed files with 57 additions and 52 deletions

View File

@ -254,13 +254,19 @@ Item {
anchors.top: communityNbMembers.bottom
anchors.topMargin: Style.current.halfPadding
}
Item {
width: parent.width
height: 44
anchors.bottom: parent.bottom
clip: true
StatusButton {
id: joinBtn
type: "secondary"
anchors.top: sep2.bottom
anchors.top: parent.top
anchors.topMargin: -Style.current.smallPadding
borderRadius: 16
width: parent.width
height: 44
height: 54
enabled: true
//% "Unsupported state"
text: qsTrId("unsupported-state")
@ -288,12 +294,10 @@ Item {
}
}
if(appSettings.communitiesEnabled){
if (appSettings.communitiesEnabled) {
onBtnClick();
} else {
openPopup(confirmationPopupComponent, {
onConfirmed: onBtnClick
});
openPopup(confirmationPopupComponent, { onConfirmed: onBtnClick });
}
}
@ -308,6 +312,7 @@ Item {
}
}
}
}
}
/*##^##