aboutsummaryrefslogtreecommitdiff
path: root/pages/Transfer.qml
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-06-19 21:16:54 +0200
committerGitHub <noreply@github.com>2021-06-19 21:16:54 +0200
commit4e2b1cec953245639a6165f6c06ec89cbcaa8595 (patch)
tree7387f756079e7a0cd4361d767d5ba1a83c2e3436 /pages/Transfer.qml
parentb970cad48b9e8b7abe465e738a488f6f4b48a794 (diff)
downloadmonzero-gui-4e2b1cec953245639a6165f6c06ec89cbcaa8595.tar.gz
monzero-gui-4e2b1cec953245639a6165f6c06ec89cbcaa8595.tar.xz
monzero-gui-4e2b1cec953245639a6165f6c06ec89cbcaa8595.zip
Transfer: don't overlap inside borders; fix margins
Diffstat (limited to 'pages/Transfer.qml')
-rw-r--r--pages/Transfer.qml20
1 files changed, 12 insertions, 8 deletions
diff --git a/pages/Transfer.qml b/pages/Transfer.qml
index a2c5a1ae..4d15ee56 100644
--- a/pages/Transfer.qml
+++ b/pages/Transfer.qml
@@ -361,7 +361,8 @@ Rectangle {
Rectangle {
Layout.fillWidth: true
Layout.topMargin: -1
- Layout.rightMargin: recipientLayout.thirdRowWidth
+ Layout.leftMargin: 1
+ Layout.rightMargin: recipientLayout.thirdRowWidth + 1
color: MoneroComponents.Style.inputBorderColorInActive
height: 1
visible: index > 0
@@ -374,8 +375,8 @@ Rectangle {
KeyNavigation.backtab: index > 0 ? recipientRepeater.itemAt(index - 1).children[1].children[2] : sendButton
KeyNavigation.tab: parent.children[2]
Layout.alignment: Qt.AlignVCenter
- Layout.topMargin: recipientLayout.rowSpacing / 2
- Layout.bottomMargin: recipientLayout.rowSpacing / 2
+ Layout.topMargin: index > 0 ? 0 : 1
+ Layout.bottomMargin: 2
Layout.fillWidth: true
addressValidation: true
borderDisabled: true
@@ -454,6 +455,8 @@ Rectangle {
Rectangle {
Layout.fillHeight: true
+ Layout.topMargin: index > 0 ? 0 : 1
+ Layout.bottomMargin: 1
Layout.leftMargin: recipientLayout.colSpacing / 2 - width
Layout.rightMargin: recipientLayout.colSpacing / 2
color: MoneroComponents.Style.inputBorderColorInActive
@@ -464,8 +467,8 @@ Rectangle {
KeyNavigation.backtab: parent.children[0]
KeyNavigation.tab: index + 1 < recipientRepeater.count ? recipientRepeater.itemAt(index + 1).children[1].children[0] : sendButton
Layout.alignment: Qt.AlignVCenter
- Layout.topMargin: recipientLayout.rowSpacing / 2
- Layout.bottomMargin: recipientLayout.rowSpacing / 2
+ Layout.topMargin: index > 0 ? 0 : 1
+ Layout.bottomMargin: 2
Layout.rightMargin: recipientLayout.colSpacing / 2
Layout.preferredWidth: 125
Layout.maximumWidth: 125
@@ -550,7 +553,7 @@ Rectangle {
Layout.column: 0
Layout.row: 0
Layout.fillWidth: true
- Layout.topMargin: recipientModel.count > 1 ? 0 : 5
+ Layout.topMargin: recipientModel.count > 1 ? 0 : -1
spacing: 0
CheckBox {
@@ -590,6 +593,7 @@ Rectangle {
Layout.column: 1
Layout.row: 0
Layout.preferredWidth: recipientLayout.secondRowWidth
+ Layout.topMargin: recipientModel.count > 1 ? 0 : -1
Layout.maximumWidth: recipientLayout.secondRowWidth
borderDisabled: true
fontFamily: MoneroComponents.Style.fontMonoRegular.name
@@ -619,7 +623,7 @@ Rectangle {
Layout.column: 1
Layout.row: recipientModel.count > 1 ? 1 : 0
Layout.preferredWidth: recipientLayout.secondRowWidth
- Layout.topMargin: recipientModel.count > 1 ? 0 : 5
+ Layout.topMargin: recipientModel.count > 1 ? 0 : -1
Layout.maximumWidth: recipientLayout.secondRowWidth
borderDisabled: true
fontFamily: MoneroComponents.Style.fontMonoRegular.name
@@ -639,7 +643,7 @@ Rectangle {
Layout.column: 2
Layout.row: recipientModel.count > 1 ? 1 : 0
Layout.preferredWidth: recipientLayout.thirdRowWidth
- Layout.topMargin: recipientModel.count > 1 ? 0 : 5
+ Layout.topMargin: recipientModel.count > 1 ? 0 : -1
Layout.maximumWidth: recipientLayout.thirdRowWidth
font.family: MoneroComponents.Style.fontRegular.name
horizontalAlignment: Text.AlignHCenter