Skip to content

Commit

Permalink
Merge pull request #1882 from KomodoPlatform/err_oflow
Browse files Browse the repository at this point in the history
fix validation message overflow
  • Loading branch information
tonymorony authored Jul 22, 2022
2 parents 74389e2 + 6ec9b94 commit 1782682
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions atomic_defi_design/Dex/Wallet/SendModal.qml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ MultipageModal
{
if (!is_validate_address_busy)
{
needFix = false
address_data = api_wallet_page.validate_address_data
if (address_data.reason !== "")
{
Expand All @@ -235,7 +236,7 @@ MultipageModal
}
if (address_data.convertible)
{
reason.text = address_data.reason;
reason.text = address_data.reason;
if (needFix!==true) needFix = true;
}
}
Expand Down Expand Up @@ -329,7 +330,7 @@ MultipageModal
{
visible: errorView && input_address.text !== ""
Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true
Layout.preferredWidth: 380
spacing: 4

Item { Layout.fillWidth: true }
Expand All @@ -339,8 +340,9 @@ MultipageModal
id: reason

Layout.alignment: Qt.AlignVCenter
Layout.preferredWidth: 320

wrapMode: Text.WrapAtWordBoundaryOrAnywhere
wrapMode: Label.Wrap
color: Dex.CurrentTheme.noColor
text_value: qsTr("The address has to be mixed case.")
}
Expand All @@ -349,14 +351,11 @@ MultipageModal
{
enabled: !root.is_send_busy
visible: needFix

Layout.alignment: Qt.AlignVCenter
Layout.leftMargin: 10
Layout.preferredWidth: 50
Layout.preferredHeight: 28

text: qsTr("Fix")

onClicked: api_wallet_page.convert_address(input_address.text, address_data.to_address_format)
}

Expand Down Expand Up @@ -659,7 +658,7 @@ MultipageModal
Layout.alignment: Qt.AlignHCenter
horizontalAlignment: DefaultText.AlignHCenter

wrapMode: Text.Wrap
wrapMode: Label.Wrap
color: Style.colorRed
text_value: qsTr("Custom Fee can't be higher than the amount") + "\n"
+ qsTr("You have %1", "AMT TICKER").arg(General.formatCrypto("", API.app.get_balance(General.getFeesTicker(current_ticker_infos)), General.getFeesTicker(current_ticker_infos)))
Expand All @@ -672,7 +671,7 @@ MultipageModal
Layout.topMargin: 16
Layout.alignment: Qt.AlignHCenter
horizontalAlignment: DefaultText.AlignHCenter
wrapMode: Text.Wrap
wrapMode: Label.Wrap
visible: !fee_error.visible && !hasFunds()

color: Dex.CurrentTheme.noColor
Expand All @@ -690,6 +689,7 @@ MultipageModal
visible: root.is_send_busy
}


// Footer
RowLayout
{
Expand Down

0 comments on commit 1782682

Please sign in to comment.