Skip to content

Commit e62ccd8

Browse files
committed
Small fixes
1 parent b36a12c commit e62ccd8

File tree

3 files changed

+50
-5
lines changed

3 files changed

+50
-5
lines changed

components/data/BlocksTimeline/BlocksTimelineTable.vue

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ watch(
212212
<th><Text size="12" weight="600" color="tertiary">Proposer</Text></th>
213213
<th><Text size="12" weight="600" color="tertiary">Txs</Text></th>
214214
<th><Text size="12" weight="600" color="tertiary">Blobs</Text></th>
215-
<th><Text size="12" weight="600" color="tertiary">Total Fees</Text></th>
215+
<th><Text size="12" weight="600" color="tertiary">Size</Text></th>
216+
<th><Text size="12" weight="600" color="tertiary">Fees</Text></th>
216217
</tr>
217218
</thead>
218219
@@ -294,9 +295,16 @@ watch(
294295
</Text>
295296
</Flex>
296297
</td>
298+
<td>
299+
<Flex align="center">
300+
<Text size="13" weight="600" color="primary">
301+
{{ formatBytes(block.stats.bytes_in_block, 0) }}
302+
</Text>
303+
</Flex>
304+
</td>
297305
<td>
298306
<Flex align="center" gap="4">
299-
<AmountInCurrency :amount="{ value: block.stats.fee, decimal: 6 }" :styles="{ amount: { size: '13' } }" />
307+
<AmountInCurrency :amount="{ value: block.stats.fee, decimal: 2 }" :styles="{ amount: { size: '13' } }" />
300308
</Flex>
301309
</td>
302310
</tr>
@@ -495,6 +503,10 @@ watch(
495503
<Text size="12" weight="600" color="tertiary"> Events</Text>
496504
<Text size="12" weight="600" color="secondary"> {{ preview.block.stats.events_count }} </Text>
497505
</Flex>
506+
<Flex align="center" justify="between">
507+
<Text size="12" weight="600" color="tertiary"> Block Size </Text>
508+
<Text size="12" weight="600" color="secondary"> {{ formatBytes(preview.block.stats.bytes_in_block) }} </Text>
509+
</Flex>
498510
<Flex align="center" justify="between">
499511
<Text size="12" weight="600" color="tertiary"> Blobs </Text>
500512
<Text size="12" weight="600" color="secondary"> {{ formatBytes(preview.block.stats.blobs_size) }} </Text>
@@ -566,6 +578,7 @@ watch(
566578
.table {
567579
border-radius: 4px 4px 4px 8px;
568580
background: var(--card-background);
581+
max-width: 604px;
569582
570583
& table {
571584
width: 100%;
@@ -657,6 +670,8 @@ watch(
657670
}
658671
659672
.main {
673+
max-height: 690px;
674+
overflow-y: auto;
660675
flex: 1;
661676
662677
border-bottom: 1px solid var(--op-5);

components/modules/rollup/RollupOverview.vue

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ const activeTab = ref(preselectedTab)
5252
const isRefetching = ref(false)
5353
const namespaces = ref([])
5454
const blobs = ref([])
55+
const relatedLinks = computed(() => {
56+
if (props.rollup.links?.length) {
57+
return props.rollup.links[0].split(',')
58+
} else {
59+
return []
60+
}
61+
})
5562
5663
const page = ref(1)
5764
const pages = computed(() => (activeTab.value === "Blobs" ? Math.ceil(props.rollup.blobs_count / 10) : 1))
@@ -278,6 +285,19 @@ const handleCSVDownload = async (period) => {
278285
</Text>
279286
</Flex>
280287
</Flex>
288+
<Flex v-if="relatedLinks.length" direction="column" gap="6">
289+
<Text size="12" weight="600" color="secondary">Related Links</Text>
290+
291+
<Flex align="center" direction="column" gap="2">
292+
<Flex v-for="link in relatedLinks" align="center" justify="start" wide>
293+
<a :href="link" target="_blank">
294+
<Text size="12" height="140" weight="600" color="tertiary" mono selectable :class="$style.link">
295+
{{ link }}
296+
</Text>
297+
</a>
298+
</Flex>
299+
</Flex>
300+
</Flex>
281301
<Flex align="center" justify="start" gap="12">
282302
<Tooltip v-if="rollup.website" position="start" delay="500">
283303
<a :href="rollup.website" target="_blank">
@@ -321,11 +341,11 @@ const handleCSVDownload = async (period) => {
321341
322342
<Tooltip v-if="rollup.explorer" position="start" delay="500">
323343
<a :href="rollup.explorer" target="_blank">
324-
<Icon name="blockscout" size="14" color="secondary" :class="$style.btn" />
344+
<Icon name="search" size="14" color="secondary" :class="$style.btn" />
325345
</a>
326346
327347
<template #content>
328-
{{ rollup.explorer }}
348+
{{ `Explorer: ${rollup.explorer}` }}
329349
</template>
330350
</Tooltip>
331351
</Flex>
@@ -506,6 +526,16 @@ const handleCSVDownload = async (period) => {
506526
text-overflow: ellipsis;
507527
overflow: hidden;
508528
}
529+
530+
.link {
531+
max-width: 352px;
532+
text-overflow: ellipsis;
533+
overflow: hidden;
534+
}
535+
536+
.link:hover {
537+
color: var(--txt-secondary);
538+
}
509539
}
510540
511541
.txs_wrapper {

pages/blobstream.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ getCommitments()
506506
padding: 16px 0;
507507
}
508508
509-
@media (max-width: 900px) {
509+
@media (max-width: 800px) {
510510
.card_wrapper {
511511
flex-direction: column;
512512
}

0 commit comments

Comments
 (0)