From 3b4ef1a09359a178206ffb5d696bb31c408d5f37 Mon Sep 17 00:00:00 2001 From: janmichek Date: Tue, 14 Nov 2023 11:12:46 +0100 Subject: [PATCH 1/8] translate known addresses --- src/components/ValueHashEllipsed.vue | 20 +++++++++++++------- src/utils/constants.js | 16 ++++++++++++++++ 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/src/components/ValueHashEllipsed.vue b/src/components/ValueHashEllipsed.vue index 3dbb5e231..4e0f77dd1 100644 --- a/src/components/ValueHashEllipsed.vue +++ b/src/components/ValueHashEllipsed.vue @@ -4,10 +4,10 @@ - {{ formatEllipseHash(hash) }} + {{ translatedAddress }} - {{ formatEllipseHash(hash) }} + {{ translatedAddress }} @@ -17,14 +17,14 @@ - {{ formatEllipseHash(hash) }} + {{ translatedAddress }} - {{ formatEllipseHash(hash) }} + {{ translatedAddress }} @@ -34,11 +34,9 @@ diff --git a/src/components/NftsDetailsPanel.vue b/src/components/NftsDetailsPanel.vue index d8d6716db..1b1029f08 100644 --- a/src/components/NftsDetailsPanel.vue +++ b/src/components/NftsDetailsPanel.vue @@ -6,11 +6,11 @@ @@ -145,20 +145,5 @@ defineProps({ gap: var(--space-1); justify-content: flex-end; } - - &__chip, - &__hash { - display: none; - @media (--desktop) { - display: inline-flex; - } - } - - &__chip-ellipse, - &__hash-ellipse { - @media (--desktop) { - display: none; - } - } } diff --git a/src/components/OracleDetailsPanel.vue b/src/components/OracleDetailsPanel.vue index b73a307f7..12183b453 100644 --- a/src/components/OracleDetailsPanel.vue +++ b/src/components/OracleDetailsPanel.vue @@ -6,11 +6,11 @@
@@ -133,10 +133,10 @@
- + {{ oracleDetails.operator }} - + {{ formatEllipseHash(oracleDetails.operator) }} @@ -225,20 +225,5 @@ const oracleMiddlewareUrl = computed(() => margin-right: var(--space-3); } } - - &__chip, - &__hash { - display: none; - @media (--desktop) { - display: inline-flex; - } - } - - &__chip-ellipse, - &__hash-ellipse { - @media (--desktop) { - display: none; - } - } } diff --git a/src/components/StateChannelDetailsPanel.vue b/src/components/StateChannelDetailsPanel.vue index eaa97d5a3..4e2db552c 100644 --- a/src/components/StateChannelDetailsPanel.vue +++ b/src/components/StateChannelDetailsPanel.vue @@ -6,11 +6,11 @@ @@ -37,10 +37,10 @@
- + {{ stateChannelDetails.createTransactionHash }} - + {{ formatEllipseHash(stateChannelDetails.createTransactionHash) }} @@ -66,10 +66,10 @@ - + {{ stateChannelDetails.initiator }} - + {{ formatEllipseHash(stateChannelDetails.initiator) }} @@ -84,10 +84,10 @@ - + {{ stateChannelDetails.responder }} - + {{ formatEllipseHash(stateChannelDetails.responder) }} @@ -222,20 +222,5 @@ const stateChannelMiddlewareUrl = `${MIDDLEWARE_URL}/v2/channels/${props.stateCh display: inline-flex; align-items: center; } - - &__chip, - &__hash { - display: none; - @media (--desktop) { - display: inline-flex; - } - } - - &__chip-ellipse, - &__hash-ellipse { - @media (--desktop) { - display: none; - } - } } diff --git a/src/components/TransactionGeneralPanel.vue b/src/components/TransactionGeneralPanel.vue index b224b1875..ced50c856 100644 --- a/src/components/TransactionGeneralPanel.vue +++ b/src/components/TransactionGeneralPanel.vue @@ -6,11 +6,11 @@