fix(EnsTermsAndConditionsView): fix checkbox alignment

actually make it possible to also click the text to toggle :)

Closes #6558
This commit is contained in:
Lukáš Tinkl 2022-07-21 18:00:49 +02:00 committed by Iuri Matias
parent 639a70b611
commit 080966cc19
1 changed files with 6 additions and 1 deletions

View File

@ -302,11 +302,16 @@ Item {
StatusBaseText {
text: qsTr("Agree to <a href=\"#\">Terms of name registration.</a> I understand that my wallet address will be publicly connected to my username.")
anchors.left: termsAndConditionsCheckbox.right
anchors.leftMargin: Style.current.halfPadding
anchors.right: parent.right
wrapMode: Text.WordWrap
anchors.top: termsAndConditionsCheckbox.top
anchors.verticalCenter: termsAndConditionsCheckbox.verticalCenter
onLinkActivated: popup.open()
color: Theme.palette.directColor1
TapHandler {
enabled: !parent.hoveredLink
onSingleTapped: termsAndConditionsCheckbox.toggle()
}
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Text