[#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:
parent
076a5bc5b7
commit
7ac63b4451
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*##^##
|
||||
|
|
Loading…
Reference in New Issue