diff --git a/qortal-ui-core/src/components/login-view/create-account-section.js b/qortal-ui-core/src/components/login-view/create-account-section.js index 79ed03c9..038bc20f 100644 --- a/qortal-ui-core/src/components/login-view/create-account-section.js +++ b/qortal-ui-core/src/components/login-view/create-account-section.js @@ -12,8 +12,6 @@ import { checkApiKey } from '../../apiKeyUtils.js' import snackbar from '../../functional-components/snackbar.js' -import '@cwmr/paper-password-input/paper-password-input.js' - import '@material/mwc-button' import '@material/mwc-checkbox' import '@material/mwc-icon' @@ -21,6 +19,8 @@ import '@material/mwc-icon' import '@polymer/iron-pages' import '@polymer/paper-input/paper-input-container.js' import '@polymer/paper-input/paper-input.js' +import '@vaadin/vaadin-text-field/vaadin-text-field.js' +import '@vaadin/vaadin-text-field/vaadin-password-field.js' import 'random-sentence-generator' @@ -381,38 +381,32 @@ class CreateAccountSection extends connect(store)(LitElement) { > -
- - { this.showSeedphrase = !e.target.checked; this.updateNext() }} ?checked=${this.showSeedphrase}> +
+ + { this.showSeedphrase = !e.target.checked; this.updateNext() }} ?checked=${this.showSeedphrase}>
-

Save in browser

+

Save in browser

Your account is now ready to be created. It will be saved in this browser. If you do not want your new account to be saved in your browser, you can uncheck the box below. You will still be able to login with your new account(after logging out), using your wallet backup file that you MUST download once you create your account.

-
- perm_identity - +
+ perm_identity +
- vpn_key - + password +
- vpn_key - + password +
- - { this.saveAccount = !e.target.checked }} ?checked=${this.saveAccount}> + + { this.saveAccount = !e.target.checked }} ?checked=${this.saveAccount}>
@@ -433,11 +427,8 @@ class CreateAccountSection extends connect(store)(LitElement) {
- - { this.isDownloadedBackup = !e.target.checked; this.updateNext() }} ?checked=${this.isDownloadedBackup}> + + { this.isDownloadedBackup = !e.target.checked; this.updateNext() }} ?checked=${this.isDownloadedBackup}>
diff --git a/qortal-ui-core/src/components/login-view/login-section.js b/qortal-ui-core/src/components/login-view/login-section.js index db6318c2..94402c23 100644 --- a/qortal-ui-core/src/components/login-view/login-section.js +++ b/qortal-ui-core/src/components/login-view/login-section.js @@ -16,16 +16,15 @@ import '@polymer/paper-input/paper-input.js' import '@polymer/paper-ripple' import '@polymer/iron-collapse' import '@polymer/paper-spinner/paper-spinner-lite.js' -import '@cwmr/paper-password-input/paper-password-input.js' +import '@vaadin/vaadin-text-field/vaadin-text-field.js' +import '@vaadin/vaadin-text-field/vaadin-password-field.js' import { doLogin, doSelectAddress } from '../../redux/app/app-actions.js' import { doStoreWallet, doRemoveWallet } from '../../redux/user/user-actions.js' - import { createWallet } from '../../../../qortal-ui-crypto/api/createWallet.js' import snackbar from '../../functional-components/snackbar.js' import '../../custom-elements/frag-file-input.js' - import ripple from '../../functional-components/loading-ripple.js' class LoginSection extends connect(store)(LitElement) { @@ -106,12 +105,14 @@ class LoginSection extends connect(store)(LitElement) { --paper-spinner-color: var(--mdc-theme-primary); --paper-spinner-stroke-width: 2px; } + #loginPages{ overflow:visible; } + #walletsPage { - /*min-width: 500px;*/ } + #wallets { max-height: 50vh; border-bottom: 1px solid #eee; @@ -121,21 +122,23 @@ class LoginSection extends connect(store)(LitElement) { background: rgb(253 253 253 / 50%); margin: 2vh; } + .wallet { - /* max-width: 300px; */ position: relative; padding: 15px 60px 15px 15px; cursor: pointer; display: flex; border-bottom: solid 1px #dedede; } + .wallet .wallet-details { float: left; width: auto; height: 60px; display: block; } - .wallet .wallet-details p{ + + .wallet .wallet-details p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -144,26 +147,30 @@ class LoginSection extends connect(store)(LitElement) { font-size: 15px; line-height: 20px; } - .wallet .walletAddress{ + + .wallet .walletAddress { height: 40px !important; line-height: 40px !important; } - .wallet .walletName{ - + + .wallet .walletName { } - .wallet p span{ + + .wallet p span { color: #888; font-size: 12px; width: 50px; display: inline-block; } - .removeWallet{ + + .removeWallet { position: absolute; right: 5px; top: 20px; color: tomato; --mdc-icon-size: 30px; } + .login-option { max-width: 300px; position: relative; @@ -171,15 +178,17 @@ class LoginSection extends connect(store)(LitElement) { cursor: pointer; display: flex; } + .loginIcon { - /* font-size:42px; */ padding-right: 12px; margin-top: -2px; } + *[hidden] { display:none !important; visibility: hidden; } + h1 { padding: 24px; padding-top:0; @@ -187,6 +196,7 @@ class LoginSection extends connect(store)(LitElement) { font-size:24px; font-weight:100; } + .accountIcon { font-size:42px; padding-top:8px; @@ -195,6 +205,7 @@ class LoginSection extends connect(store)(LitElement) { #unlockStoredPage { padding: 24px; } + #unlockStoredPage mwc-icon { font-size:48px; } @@ -202,26 +213,29 @@ class LoginSection extends connect(store)(LitElement) { @media only screen and (max-width: ${getComputedStyle(document.body).getPropertyValue('--layout-breakpoint-tablet')}) { /* Mobile */ #wallets { - /* max-height: calc(var(--window-height) - 180px); - min-height: calc(var(--window-height) - 180px); */ height:100%; overflow-y:auto; overflow-x:hidden; } + #loginSection { height: calc(var(--window-height) - 56px); } + .wallet { max-width: 100%; } } + .backButton { padding:14px; text-align:left; } + #pagesContainer { max-height: calc(var(--window-height) - 184px); } + .checkboxLabel:hover{ cursor: pointer; } @@ -246,7 +260,7 @@ class LoginSection extends connect(store)(LitElement) {
-
+

Your accounts

Click your account to login with it

@@ -259,7 +273,6 @@ class LoginSection extends connect(store)(LitElement) {
this.selectWallet(wallet[1])}>
-

Name${wallet[1].name || "No saved name"}

Address${wallet[1].address0}

@@ -273,8 +286,8 @@ class LoginSection extends connect(store)(LitElement) {
- short_text - + short_text +
@@ -282,8 +295,8 @@ class LoginSection extends connect(store)(LitElement) {
- clear_all - + clear_all +
@@ -312,13 +325,14 @@ class LoginSection extends connect(store)(LitElement) {
- + perm_identity +
- vpn_key - this.keyupEnter(e, e => this.emitNext(e))}> + password + this.keyupEnter(e, e => this.emitNext(e))}>
@@ -326,15 +340,9 @@ class LoginSection extends connect(store)(LitElement) { ${this.loginErrorMessage}
${this.showPasswordCheckboxPages.includes(this.selectedPage) ? html` -
-

- - { this.saveInBrowser = !e.target.checked }} ?checked="${this.saveInBrowser}"> -

+
+ + { this.saveInBrowser = !e.target.checked }} ?checked="${this.saveInBrowser}">
` : ''}
@@ -345,7 +353,6 @@ class LoginSection extends connect(store)(LitElement) { firstUpdated() { this.loadingRipple = ripple - const pages = this.shadowRoot.querySelector('#loginPages') pages.addEventListener('selected-item-changed', () => { if (!pages.selectedItem) { @@ -370,7 +377,7 @@ class LoginSection extends connect(store)(LitElement) { this.wallets = store.getState().user.storedWallets store.dispatch( doRemoveWallet(walletAddress) - )//.catch(err => console.error(err)) + ) this.cleanup() } } @@ -570,7 +577,6 @@ class LoginSection extends connect(store)(LitElement) { // clicks next for parent clickNext() { - } updateNext() {