From c4f263b7d14d195ea29dc41e0f038e7f80b30f37 Mon Sep 17 00:00:00 2001 From: Serg Date: Thu, 1 May 2025 04:47:04 +1000 Subject: [PATCH 1/5] fix: layout fixes --- src/components/BuyTokensDialog.vue | 5 + src/components/NavigationWrapper.vue | 1 + src/components/nodes/NodesTable.vue | 2 - src/views/AppSidebar.vue | 2 +- src/views/Login.vue | 153 ++++++++++++++------------- src/views/Options.vue | 38 ++++++- 6 files changed, 122 insertions(+), 79 deletions(-) diff --git a/src/components/BuyTokensDialog.vue b/src/components/BuyTokensDialog.vue index a37eb1ef0..b01c67f41 100644 --- a/src/components/BuyTokensDialog.vue +++ b/src/components/BuyTokensDialog.vue @@ -104,6 +104,9 @@ export default { } }, methods: { + closeDialog() { + this.show = false + }, openLink(link) { if (link.startsWith('U')) { this.$router.push({ @@ -113,6 +116,8 @@ export default { } else { window.open(link, '_blank', 'resizable,scrollbars,status,noopener') } + + this.closeDialog() } } } diff --git a/src/components/NavigationWrapper.vue b/src/components/NavigationWrapper.vue index b1551ea60..76ccef909 100644 --- a/src/components/NavigationWrapper.vue +++ b/src/components/NavigationWrapper.vue @@ -34,6 +34,7 @@ + diff --git a/src/components/PasswordSetDialog.vue b/src/components/PasswordSetDialog.vue index 852c581b5..6700001a3 100644 --- a/src/components/PasswordSetDialog.vue +++ b/src/components/PasswordSetDialog.vue @@ -8,7 +8,7 @@ - + { + if (e.key === 'Escape') { + if (this.show) { + e.stopPropagation() + this.togglePasswordVisibility() + + window.removeEventListener('keydown', onKeydownHandler, true) + } + } + } + + window.addEventListener('keydown', onKeydownHandler, true) return { mdiEye, diff --git a/src/store/modules/options/index.js b/src/store/modules/options/index.js index 243b99853..351a3dad5 100644 --- a/src/store/modules/options/index.js +++ b/src/store/modules/options/index.js @@ -12,11 +12,13 @@ const state = () => ({ currentWallet: Cryptos.ADM, // current Wallet Tab on Account view (this is not an option) useSocketConnection: true, suppressWarningOnAddressesNotification: false, - currentRate: Rates.USD + currentRate: Rates.USD, + scrollTopPosition: 0 }) const getters = { - isLoginViaPassword: (state) => state.stayLoggedIn + isLoginViaPassword: (state) => state.stayLoggedIn, + scrollTopPosition: (state) => state.scrollTopPosition } const mutations = { diff --git a/src/views/Login.vue b/src/views/Login.vue index d88a16181..ff3b989f6 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -27,7 +27,7 @@ - -