Skip to content

Commit ce1d137

Browse files
committed
Add correct version to all blob tables, small ui fixes
1 parent f79b835 commit ce1d137

5 files changed

Lines changed: 51 additions & 12 deletions

File tree

components/modals/BlobModal.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,11 @@ const handlePreviewContent = () => {
300300
<Text size="13" weight="600" color="primary">{{ formatBytes(cacheStore.selectedBlob.size) }}</Text>
301301
</Flex>
302302
303-
<Flex v-if="blob?.share_version !== null && blob?.share_version !== undefined" direction="column" gap="8" :class="$style.badge">
303+
<Flex direction="column" gap="8" :class="$style.badge">
304304
<Text size="12" weight="500" color="secondary"> Version </Text>
305305
306-
<Flex align="center" justify="end">
307-
<Text size="13" weight="600" color="primary">{{ blob?.share_version }}</Text>
306+
<Flex align="center" justify="end" :class="$style.value">
307+
<Text size="13" weight="600" color="primary">{{ cacheStore.selectedBlob.share_version }}</Text>
308308
</Flex>
309309
</Flex>
310310
</Flex>
@@ -529,7 +529,7 @@ const handlePreviewContent = () => {
529529
object-fit: cover;
530530
}
531531
532-
@media (max-width: 550px) {
532+
@media (max-width: 650px) {
533533
.metadata {
534534
flex-direction: column;
535535
align-items: flex-start;
@@ -542,6 +542,10 @@ const handlePreviewContent = () => {
542542
543543
.badge {
544544
width: 100%;
545+
546+
.value {
547+
justify-content: flex-start;
548+
}
545549
}
546550
547551
.buttons {

components/modules/block/BlobsTable.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ const handleViewBlob = (blob) => {
122122
height: blob.height,
123123
signer: blob.signer,
124124
size: blob.size,
125+
share_version: blob.share_version,
125126
tx: blob.tx,
126127
rollup: blob.rollup,
127128
}
@@ -265,7 +266,7 @@ const handlePrev = () => {
265266
</Text>
266267
</td>
267268
<td>
268-
<Text size="13" weight="600" color="primary">{{ blob.namespace?.version }}</Text>
269+
<Text size="13" weight="600" color="primary">{{ blob.share_version }}</Text>
269270
</td>
270271
<td style="width: 1px">
271272
<NuxtLink v-if="blob.rollup?.logo" :to="`/network/${blob.rollup.slug}`" @click.stop>

components/modules/namespace/tables/BlobsTable.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const handleViewBlob = (blob) => {
5353
<th><Text size="12" weight="600" color="tertiary">Time</Text></th>
5454
<th><Text size="12" weight="600" color="tertiary">Share Commitments</Text></th>
5555
<th><Text size="12" weight="600" color="tertiary">Size</Text></th>
56+
<th><Text size="12" weight="600" color="tertiary">Version</Text></th>
5657
</tr>
5758
</thead>
5859

@@ -139,6 +140,11 @@ const handleViewBlob = (blob) => {
139140
{{ formatBytes(blob.size) }}
140141
</Text>
141142
</td>
143+
<td>
144+
<Text size="13" weight="600" color="primary">
145+
{{ blob.share_version }}
146+
</Text>
147+
</td>
142148
<td v-if="blob.rollup?.logo" style="width: 1px">
143149
<NuxtLink :to="`/network/${blob.rollup.slug}`" @click.stop>
144150
<Tooltip position="start" delay="500">
@@ -211,13 +217,16 @@ const handleViewBlob = (blob) => {
211217
padding: 0;
212218
padding-top: 8px;
213219
padding-bottom: 8px;
214-
padding-right: 24px;
220+
padding-right: 12px;
215221
216222
white-space: nowrap;
217223
218224
&:first-child {
219225
padding-left: 16px;
220226
}
227+
&:last-child {
228+
padding-right: 16px;
229+
}
221230
}
222231
}
223232

components/modules/rollup/tables/BlobsTable.vue

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const handleViewBlob = (blob) => {
4747
<th><Text size="12" weight="600" color="tertiary">Time</Text></th>
4848
<th><Text size="12" weight="600" color="tertiary">Share Commitments</Text></th>
4949
<th><Text size="12" weight="600" color="tertiary">Size</Text></th>
50+
<th><Text size="12" weight="600" color="tertiary">Version</Text></th>
5051
</tr>
5152
</thead>
5253

@@ -69,9 +70,15 @@ const handleViewBlob = (blob) => {
6970
</Flex>
7071
</td>
7172
<td>
72-
<Text size="13" weight="600" color="primary">
73-
{{ DateTime.fromISO(blob.time).setLocale("en").toFormat("ff") }}
74-
</Text>
73+
<Flex direction="column" justify="center" gap="4">
74+
<Text size="12" weight="600" color="primary">
75+
{{ DateTime.fromISO(blob.time).toRelative({ locale: "en", style: "short" }) }}
76+
</Text>
77+
78+
<Text size="12" weight="500" color="tertiary">
79+
{{ DateTime.fromISO(blob.time).setLocale("en").toFormat("LLL d, t") }}
80+
</Text>
81+
</Flex>
7582
</td>
7683
<td>
7784
<Tooltip position="start" delay="500">
@@ -101,6 +108,11 @@ const handleViewBlob = (blob) => {
101108
{{ formatBytes(blob.size) }}
102109
</Text>
103110
</td>
111+
<td>
112+
<Text size="13" weight="600" color="primary">
113+
{{ blob.share_version }}
114+
</Text>
115+
</td>
104116
</tr>
105117
</tbody>
106118
</table>

pages/blob.vue

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const handleCopy = (text) => {
229229
230230
<template>
231231
<Flex wide direction="column" gap="16" :class="$style.wrapper">
232-
<Flex align="center" justify="between">
232+
<Flex align="center" justify="between" :class="$style.tabs_tools">
233233
<Flex align="center" gap="8">
234234
<Flex @click="currTab = 'viewer'" align="center" gap="6" :class="[$style.tab, currTab === 'viewer' && $style.active]">
235235
<Text size="12" weight="600" color="secondary" mono>01</Text>
@@ -241,7 +241,7 @@ const handleCopy = (text) => {
241241
</Flex>
242242
</Flex>
243243
244-
<Flex align="center" gap="8">
244+
<Flex align="center" gap="8" :class="$style.tools">
245245
<Button v-if="l2BlockscoutUrl" :link="l2BlockscoutUrl" target="_blank" size="mini" type="secondary">
246246
<Icon name="blockscout" size="12" color="secondary" />
247247
View batch
@@ -254,7 +254,7 @@ const handleCopy = (text) => {
254254
<Icon name="blob" size="12" color="secondary" />
255255
Select blob
256256
</Button>
257-
<Button @click="handleDownload" type="secondary" size="mini" wide>
257+
<Button @click="handleDownload" type="secondary" size="mini">
258258
<Icon name="download" size="14" color="secondary" />
259259
</Button>
260260
<Button @click="modalsStore.open('hexSettings')" size="mini" type="secondary">
@@ -659,4 +659,17 @@ const handleCopy = (text) => {
659659
max-width: initial;
660660
}
661661
}
662+
663+
@media (max-width: 600px) {
664+
.tabs_tools {
665+
flex-direction: column-reverse;
666+
align-items: flex-start;
667+
gap: 12px;
668+
669+
.tools {
670+
width: 100%;
671+
justify-content: flex-end;
672+
}
673+
}
674+
}
662675
</style>

0 commit comments

Comments
 (0)