Conversation
Marking WIP for the changes as discussed. |
maybe get #3871 into this, too? |
flex: 1; | ||
|
||
.input { | ||
font-size: 36px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we make it 1.5em (my mistake, the headings are 1.5em, not 36px - don't know where I got that number from)
aspects i really like:
[personal opinion] UX grumbles:
|
const range = document.createRange(); | ||
range.selectNode(element); | ||
window.getSelection().addRange(range); | ||
document.execCommand('copy'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to consider all the quirks involved with the clipboard. Haven't found a focused & well-written module yet though.
<InputAddress | ||
accountsInfo={ accountsInfo } | ||
allowCopy={ false } | ||
disabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General comment. readOnly
would be appropriate here, but is not yet supported on <Input>
. disabled
means "the form control is not available for interaction".
} | ||
|
||
return this.items[address]; | ||
} | ||
const id = 'addressSelect_' + Math.round(Math.random() * 100).toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have a counter for this, renamed to sth like newId
.
let lastId = 0
const newId = () => `id${++lastId}`
I've taken into account most of your comment @jacogr and @derhuerst The only quirk left is are the tags merging into the name. This behavior also happens with other Accounts Cards (in Accounts or Contracts, etc.). At least it's a consistent quirk ! |
@ngotchac As you said, it is consistent behaviour, would not worry about it too much atm, as ugly as it is. (Once we have moved accounts over to use the same Card, we can re-visit.) |
Ok, not sure why we moved to monospaced fonts here for the address. With this we are now wildly inconsistent since there is nowhere in the UI where we actually display addresses with monospaced fonts - not on any of the views, not in any of the drop downs, not in any of the inputs. Apart from that, looks to be there. |
Guess @ngotchac followed my suggestion.
You have a better overview over the UI. But I'm very sure it used to be like this a short time ago. I'm completely fine with abbreviating the address (using As a side note, while we're talking about the addresses: I'd like them all be either lower/upper case, not a mixture. Or is there a reason behind this? |
Mixed case is due to us following EIP55 for checksums |
Changes Unknown when pulling 61c5b9c on ng-enhanced-address-selector into ** on master**. |
Changes Unknown when pulling 61c5b9c on ng-enhanced-address-selector into ** on master**. |
Add a new Address Selector component. This is a full width component that should make searching through addresses easier and nicer.
It is a first try, and I'm sure many things can be improved.
The InputAddressSelect Component is by default using this new component, but the old one is still available by just specifying it from props (we might want to remove this).
Included features: