aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-12-07 18:57:26 -0600
committerluigi1111 <luigi1111w@gmail.com>2018-12-07 18:57:26 -0600
commit54f9b7413f8985c8e1ce167ecb7d7b826a77c221 (patch)
treef0dbe9562ef0e8066302363806d66f9e00618a02 /components
parent99fe6fb628bf7b5cd6753f45c67a5698e628acb9 (diff)
parent56bd6065e5aaa5f72b1a95fcc345bac666f38bcb (diff)
downloadmonzero-gui-54f9b7413f8985c8e1ce167ecb7d7b826a77c221.tar.gz
monzero-gui-54f9b7413f8985c8e1ce167ecb7d7b826a77c221.tar.xz
monzero-gui-54f9b7413f8985c8e1ce167ecb7d7b826a77c221.zip
Merge pull request #1778
56bd606 addressbook: improve readability by truncating long text and allowing wrapmode on address/description/paymentid fields (mmbyday)
Diffstat (limited to 'components')
-rw-r--r--components/AddressBookTable.qml17
1 files changed, 15 insertions, 2 deletions
diff --git a/components/AddressBookTable.qml b/components/AddressBookTable.qml
index cae68d2f..00a29b9d 100644
--- a/components/AddressBookTable.qml
+++ b/components/AddressBookTable.qml
@@ -28,6 +28,7 @@
import QtQuick 2.0
import moneroComponents.Clipboard 1.0
+import "../js/TxUtils.js" as TxUtils
ListView {
id: listView
@@ -88,7 +89,13 @@ ListView {
font.family: "Arial"
font.pixelSize: 16
color: "#ffffff"
- text: address
+ text: {
+ if(isMobile){
+ TxUtils.addressTruncate(address, 6);
+ } else {
+ return TxUtils.addressTruncate(address, 10);
+ }
+ }
readOnly: true
}
@@ -117,7 +124,13 @@ ListView {
font.family: "Arial"
font.pixelSize: 13
color: "#545454"
- text: paymentId
+ text: {
+ if(isMobile){
+ TxUtils.addressTruncate(paymentId, 6);
+ } else {
+ return TxUtils.addressTruncate(paymentId, 10);
+ }
+ }
}
ListModel {