Minor UX improvements
This commit is contained in:
parent
72169548d8
commit
7b4684d1c7
@ -1177,6 +1177,7 @@ ol li::before {
|
|||||||
.group-member {
|
.group-member {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
.group-member .admin-tag {
|
.group-member .admin-tag {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
2
css/main.min.css
vendored
2
css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1200,7 +1200,7 @@ ol {
|
|||||||
.group-member {
|
.group-member {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
font-size: 0.9rem;
|
||||||
.admin-tag {
|
.admin-tag {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
|||||||
@ -701,7 +701,8 @@
|
|||||||
<h4>Add contact</h4>
|
<h4>Add contact</h4>
|
||||||
</header>
|
</header>
|
||||||
<sm-form>
|
<sm-form>
|
||||||
<sm-input id="add_contact_floID" floId placeholder="FLO/BTC address" animate autofocus required></sm-input>
|
<sm-input id="add_contact_floID" data-flo-address placeholder="FLO/BTC address" error-text="Invalid address"
|
||||||
|
animate autofocus required></sm-input>
|
||||||
<sm-input id="add_contact_name" placeholder="Name" animate required></sm-input>
|
<sm-input id="add_contact_name" placeholder="Name" animate required></sm-input>
|
||||||
<button class="button button--primary" id="add_contact_button" type="submit" disabled>Add</button>
|
<button class="button button--primary" id="add_contact_button" type="submit" disabled>Add</button>
|
||||||
</sm-form>
|
</sm-form>
|
||||||
@ -3844,7 +3845,7 @@
|
|||||||
function addContact() {
|
function addContact() {
|
||||||
let addressToSave = getRef('add_contact_floID').value.trim();
|
let addressToSave = getRef('add_contact_floID').value.trim();
|
||||||
let name = getRef('add_contact_name').value.trim();
|
let name = getRef('add_contact_name').value.trim();
|
||||||
if (addressToSave === floDapps.user.id) {
|
if (floCrypto.isSameAddr(addressToSave, floDapps.user.id)) {
|
||||||
notify(`you can't add your own FLO/BTC address as contact`, 'error')
|
notify(`you can't add your own FLO/BTC address as contact`, 'error')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user