mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-05 17:27:26 -04:00
addressbook: improve readability by truncating long text and allowing wrapmode on address/description/paymentid fields
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user