From 2ea205070401404da830b7592a845f7cd26aa1d2 Mon Sep 17 00:00:00 2001 From: Vitaliy Sulimenko Date: Wed, 31 Jan 2024 20:56:26 +0100 Subject: [PATCH] Update 31.01.2024 --- package-lock.json | 11 -- package.json | 1 - public/css/styles.css | 2 +- src/components/Header.vue | 20 ++- src/components/account/Networks.vue | 29 ++-- src/components/account/ProposalsItem.vue | 10 +- src/components/account/Stats.vue | 83 ++++++++++-- src/components/account/Validators.vue | 6 +- src/components/modal/ValidatorModal.vue | 66 +++++---- src/components/proposal/Depositors.vue | 5 +- src/components/proposal/ProposalInfo.vue | 163 +++++++++++------------ src/views/Account.vue | 2 + src/views/Proposals.vue | 82 +++++------- 13 files changed, 256 insertions(+), 224 deletions(-) diff --git a/package-lock.json b/package-lock.json index 23bb549..41f1817 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,6 @@ "core-js": "^3.8.3", "detect.js": "^2.2.3", "gh-pages": "^4.0.0", - "hc-sticky": "^2.2.7", "html-to-image": "^1.11.11", "marked": "^5.0.2", "mitt": "^3.0.0", @@ -7182,11 +7181,6 @@ "minimalistic-assert": "^1.0.1" } }, - "node_modules/hc-sticky": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/hc-sticky/-/hc-sticky-2.2.7.tgz", - "integrity": "sha512-xGEvtKqwztK3xC5a26U0ZNLu8bNMP378ZPuEfHRxHtQCsT/Y0Kg7BG3w02oWuD46ecOWUioUZoJAXT2tJs3Q7Q==" - }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -18116,11 +18110,6 @@ "minimalistic-assert": "^1.0.1" } }, - "hc-sticky": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/hc-sticky/-/hc-sticky-2.2.7.tgz", - "integrity": "sha512-xGEvtKqwztK3xC5a26U0ZNLu8bNMP378ZPuEfHRxHtQCsT/Y0Kg7BG3w02oWuD46ecOWUioUZoJAXT2tJs3Q7Q==" - }, "he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", diff --git a/package.json b/package.json index 974b94a..185cb27 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "core-js": "^3.8.3", "detect.js": "^2.2.3", "gh-pages": "^4.0.0", - "hc-sticky": "^2.2.7", "html-to-image": "^1.11.11", "marked": "^5.0.2", "mitt": "^3.0.0", diff --git a/public/css/styles.css b/public/css/styles.css index d929428..79696e2 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -203,7 +203,7 @@ button z-index: 9; display: flex; - overflow: hidden; + overflow: clip; flex-direction: column; min-width: 360px; diff --git a/src/components/Header.vue b/src/components/Header.vue index cd7991f..af210fb 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -123,14 +123,14 @@ header .info { + align-content: center; + align-items: center; + justify-content: space-between; + min-height: 105px; padding: 11px 20px; border-radius: 42px; - - align-content: center; - align-items: center; - justify-content: space-between; } @@ -147,13 +147,12 @@ header .logo .btn { display: flex; - - cursor: pointer; - - justify-content: flex-start; - align-items: center; align-content: center; + align-items: center; flex-wrap: wrap; + justify-content: flex-start; + + cursor: pointer; } @@ -198,8 +197,6 @@ header .logo .mini_modal a { - color: currentColor; - display: block; padding: 6px 10px 6px 4px; @@ -207,6 +204,7 @@ transition: background .2s linear; text-decoration: none; + color: currentColor; border-radius: 8px; } diff --git a/src/components/account/Networks.vue b/src/components/account/Networks.vue index 1798146..212670d 100644 --- a/src/components/account/Networks.vue +++ b/src/components/account/Networks.vue @@ -50,6 +50,9 @@ \ No newline at end of file diff --git a/src/components/account/ProposalsItem.vue b/src/components/account/ProposalsItem.vue index 17e98f2..884c377 100644 --- a/src/components/account/ProposalsItem.vue +++ b/src/components/account/ProposalsItem.vue @@ -51,7 +51,7 @@
-
+
@@ -59,8 +59,8 @@
{{ $t('message.proposal_deposite_label_collected') }}
- {{ $filters.toFixed(props.proposal.deposit / Math.pow(10, store.networks[store.currentNetwork].exponent), 0) }} - {{ store.networks[store.currentNetwork].token_name }} + {{ $filters.toFixed(formatTokenAmount(props.proposal.deposit, store.networks[store.currentNetwork].token_name), 0) }} + {{ formatTokenName(store.networks[store.currentNetwork].token_name) }}
@@ -69,7 +69,7 @@
{{ store.networks[store.currentNetwork].proposal_need }} - {{ store.networks[store.currentNetwork].token_name }} + {{ formatTokenName(store.networks[store.currentNetwork].token_name) }}
@@ -148,6 +148,8 @@