Skip to content

Commit 7491514

Browse files
committed
Ref feed
1 parent 1072f63 commit 7491514

1 file changed

Lines changed: 27 additions & 9 deletions

File tree

components/Feed.vue

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ onMounted(async () => {
6464
<template>
6565
<Flex tag="section" justify="center" wide :class="$style.wrapper">
6666
<Flex align="center" justify="between" gap="24" wide :class="$style.container">
67-
<Flex align="center" gap="8" :class="$style.stats">
67+
<Flex align="center" gap="12" :class="$style.stats">
6868
<template v-if="isMainnet()">
6969
<NuxtLink :to="`/rollup/rank/${topRollup?.slug}`">
7070
<Tooltip>
@@ -101,15 +101,18 @@ onMounted(async () => {
101101
<Flex align="center" gap="6" :class="$style.stat">
102102
<Icon name="tx" size="12" color="secondary" :class="$style.icon" />
103103
<Flex align="center" gap="4">
104-
<Text size="12" weight="500" color="tertiary" noWrap :class="$style.key">Total Txs:</Text>
104+
<Text size="12" weight="500" color="tertiary" noWrap :class="$style.key">Txs:</Text>
105105
106106
<Text v-if="head.total_tx" size="12" weight="600" noWrap :class="$style.value">{{ abbreviate(head.total_tx) }}</Text>
107107
<Skeleton v-else w="40" h="12" />
108108
</Flex>
109109
</Flex>
110110
111111
<template #content>
112-
{{ comma(head.total_tx) }}
112+
<Flex align="center" justify="between" gap="8">
113+
<Text size="12" weight="500" color="tertiary">Total Txs:</Text>
114+
<Text size="12" weight="600" color="secondary"> {{ comma(head.total_tx) }} </Text>
115+
</Flex>
113116
</template>
114117
</Tooltip>
115118
@@ -119,7 +122,7 @@ onMounted(async () => {
119122
<Flex align="center" gap="6" :class="$style.stat">
120123
<Icon name="coins" size="12" color="secondary" :class="$style.icon" />
121124
<Flex align="center" gap="4">
122-
<Text size="12" weight="500" color="tertiary" noWrap :class="$style.key">Total Supply:</Text>
125+
<Text size="12" weight="500" color="tertiary" noWrap :class="$style.key">Supply:</Text>
123126
124127
<Text v-if="head.total_supply" size="12" weight="600" noWrap :class="$style.value">
125128
{{ abbreviate(totalSupply, 2) }} TIA
@@ -128,7 +131,12 @@ onMounted(async () => {
128131
</Flex>
129132
</Flex>
130133
131-
<template #content> {{ abbreviate(totalSupplyUSD, 2) }} USD </template>
134+
<template #content>
135+
<Flex align="center" justify="between" gap="8">
136+
<Text size="12" weight="500" color="tertiary">Total Supply:</Text>
137+
<Text size="12" weight="600" color="secondary"> {{ abbreviate(totalSupplyUSD, 2) }} USD </Text>
138+
</Flex>
139+
</template>
132140
</Tooltip>
133141
134142
<div :class="$style.dot" />
@@ -137,7 +145,7 @@ onMounted(async () => {
137145
<Flex align="center" gap="6" :class="$style.stat">
138146
<Icon name="namespace" size="12" color="secondary" :class="$style.icon" />
139147
<Flex align="center" gap="4">
140-
<Text size="12" weight="500" color="tertiary" noWrap :class="$style.key">Total Blobs Size:</Text>
148+
<Text size="12" weight="500" color="tertiary" noWrap :class="$style.key">Blobs Size:</Text>
141149
142150
<Text v-if="head.total_blobs_size" size="12" weight="600" noWrap :class="$style.value">{{
143151
formatBytes(head.total_blobs_size)
@@ -146,7 +154,12 @@ onMounted(async () => {
146154
</Flex>
147155
</Flex>
148156
149-
<template #content> {{ comma(head.total_blobs_size) }} Bytes</template>
157+
<template #content>
158+
<Flex align="center" justify="between" gap="8">
159+
<Text size="12" weight="500" color="tertiary">Total Blobs Size:</Text>
160+
<Text size="12" weight="600" color="secondary"> {{ comma(head.total_blobs_size) }} Bytes </Text>
161+
</Flex>
162+
</template>
150163
</Tooltip>
151164
152165
<div :class="$style.dot" />
@@ -155,7 +168,7 @@ onMounted(async () => {
155168
<Flex align="center" gap="6" :class="$style.stat">
156169
<Icon name="tag" size="12" color="secondary" :class="$style.icon" />
157170
<Flex align="center" gap="4">
158-
<Text size="12" weight="500" color="tertiary" noWrap :class="$style.key">Total Fees:</Text>
171+
<Text size="12" weight="500" color="tertiary" noWrap :class="$style.key">Fees:</Text>
159172
160173
<Text v-if="head.total_fee" size="12" weight="600" noWrap :class="$style.value">
161174
{{ abbreviate(parseInt(totalFees)) }} TIA
@@ -164,7 +177,12 @@ onMounted(async () => {
164177
</Flex>
165178
</Flex>
166179
167-
<template #content> {{ abbreviate(totalFeesUSD) }} USD </template>
180+
<template #content>
181+
<Flex align="center" justify="between" gap="8">
182+
<Text size="12" weight="500" color="tertiary">Total Fees:</Text>
183+
<Text size="12" weight="600" color="secondary"> {{ abbreviate(totalFeesUSD) }} USD </Text>
184+
</Flex>
185+
</template>
168186
</Tooltip>
169187
</Flex>
170188

0 commit comments

Comments
 (0)