Skip to content

Commit a139cbe

Browse files
committed
fix send/receive colors & show busiest chain name
1 parent 0bcf6c1 commit a139cbe

File tree

4 files changed

+1444
-2940
lines changed

4 files changed

+1444
-2940
lines changed

components/modules/ibc/ChainsTable.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const handleNextPage = () => {
7676
<td>
7777
<NuxtLink :to="`/ibc/chain/${chain.chain}`">
7878
<Flex align="center" gap="6">
79-
<Icon name="arrow-narrow-up-right-circle" size="14" color="green" />
79+
<Icon name="arrow-narrow-up-right-circle" size="14" color="purple" />
8080
<Text size="13" weight="600" color="primary" mono>
8181
{{ abbreviate(chain.sent / 1_000_000) }} <Text color="secondary">TIA</Text>
8282
</Text>
@@ -89,7 +89,7 @@ const handleNextPage = () => {
8989
<td>
9090
<NuxtLink :to="`/ibc/chain/${chain.chain}`">
9191
<Flex align="center" gap="6">
92-
<Icon name="arrow-narrow-up-right-circle" size="14" color="purple" style="transform: scale(1, -1)" />
92+
<Icon name="arrow-narrow-up-right-circle" size="14" color="brand" style="transform: scale(1, -1)" />
9393
<Text size="13" weight="600" color="primary" mono>
9494
{{ abbreviate(chain.received / 1_000_000) }} <Text color="tertiary">TIA</Text>
9595
</Text>

components/modules/ibc/LargestChainsTable.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const largestChains = computed(() => props.chainsStats.slice(0, 5))
5353
<td>
5454
<NuxtLink>
5555
<Flex align="center" gap="6">
56-
<Icon name="arrow-narrow-up-right-circle" size="14" color="green" />
56+
<Icon name="arrow-narrow-up-right-circle" size="14" color="purple" />
5757
<Text size="13" weight="600" color="primary" mono>
5858
{{ abbreviate(chain.sent / 1_000_000) }} <Text color="secondary">TIA</Text>
5959
</Text>
@@ -66,12 +66,7 @@ const largestChains = computed(() => props.chainsStats.slice(0, 5))
6666
<td>
6767
<NuxtLink>
6868
<Flex align="center" gap="6">
69-
<Icon
70-
name="arrow-narrow-up-right-circle"
71-
size="14"
72-
color="purple"
73-
style="transform: scale(1, -1)"
74-
/>
69+
<Icon name="arrow-narrow-up-right-circle" size="14" color="brand" style="transform: scale(1, -1)" />
7570
<Text size="13" weight="600" color="primary" mono>
7671
{{ abbreviate(chain.received / 1_000_000) }} <Text color="tertiary">TIA</Text>
7772
</Text>

components/modules/ibc/NotableStats.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ const getChainName = (target) => {
9696
<Text size="12" weight="600" color="tertiary">{{ DateTime.now().toFormat("MMMM") }}</Text>
9797
</Flex>
9898
99-
<Text size="15" weight="600" color="primary">{{ busiestChannel.channel_id }}</Text>
99+
<Text size="15" weight="600" color="primary">
100+
{{ busiestChannel.channel_id }}
101+
<Text size="12" color="tertiary">{{ IbcChainName[busiestChannel.chain_id] ?? "Unknown" }}</Text>
102+
</Text>
100103
101104
<Text size="13" weight="500" color="support">
102105
<Text color="tertiary" mono>{{ comma(busiestChannel.transfers_count) }} transfers</Text>

0 commit comments

Comments
 (0)