@@ -5,7 +5,7 @@ import Button from "@/components/ui/Button.vue"
55import Spinner from " @/components/ui/Spinner.vue"
66
77/** Services */
8- import { comma , formatBytes , getNamespaceID , space , strToHex } from " @/services/utils"
8+ import { comma , formatBytes , getNamespaceID , shortHash , space , strToHex } from " @/services/utils"
99
1010/** API */
1111import { fetchBlobByMetadata } from " @/services/api/namespace"
@@ -238,7 +238,15 @@ const handlePreviewContent = () => {
238238
239239 <Flex align =" center" gap =" 8" >
240240 <Text size =" 13" weight =" 600" color =" primary" >
241- {{ $getDisplayName('txs', cacheStore.selectedBlob.tx.hash) }}
241+ {{ cacheStore.selectedBlob.tx.hash.slice(0, 4) }}
242+ </Text >
243+
244+ <Flex align =" center" gap =" 3" >
245+ <div v-for =" dot in 3" class =" dot" />
246+ </Flex >
247+
248+ <Text size =" 13" weight =" 600" color =" primary" >
249+ {{ cacheStore.selectedBlob.tx.hash.slice(-4) }}
242250 </Text >
243251
244252 <Icon name =" arrow-narrow-up-right" size =" 12" color =" secondary" />
@@ -292,7 +300,7 @@ const handlePreviewContent = () => {
292300 <CopyButton :text =" cacheStore.selectedBlob.commitment" />
293301
294302 <Text size =" 13" weight =" 600" color =" primary" :class =" $style.value" >
295- {{ cacheStore.selectedBlob.commitment }}
303+ {{ shortHash( cacheStore.selectedBlob.commitment) }}
296304 </Text >
297305 </Flex >
298306 </Flex >
@@ -314,6 +322,24 @@ const handlePreviewContent = () => {
314322 </NuxtLink >
315323 </Flex >
316324 </Flex >
325+
326+ <Flex v-if =" cacheStore.selectedBlob.rollup" align =" center" justify =" between" wide :class =" $style.metadata" >
327+ <Text size =" 12" weight =" 500" color =" tertiary" >Rollup:</Text >
328+
329+ <NuxtLink :to =" `/rollup/${cacheStore.selectedBlob.rollup.slug}`" target =" _blank" >
330+ <Flex align =" center" gap =" 6" >
331+ <Flex align =" center" justify =" center" :class =" $style.avatar_container" >
332+ <img :src =" cacheStore.selectedBlob.rollup.logo" :class =" $style.avatar_image" />
333+ </Flex >
334+
335+ <Text size =" 13" weight =" 600" color =" primary" :class =" $style.value" >
336+ {{ cacheStore.selectedBlob.rollup.name }}
337+ </Text >
338+
339+ <Icon name =" arrow-narrow-up-right" size =" 12" color =" secondary" />
340+ </Flex >
341+ </NuxtLink >
342+ </Flex >
317343 </Flex >
318344 </Flex >
319345
@@ -433,6 +459,20 @@ const handlePreviewContent = () => {
433459 }
434460}
435461
462+ .avatar_container {
463+ position : relative ;
464+ width : 20px ;
465+ height : 20px ;
466+ overflow : hidden ;
467+ border-radius : 50% ;
468+ }
469+
470+ .avatar_image {
471+ width : 100% ;
472+ height : 100% ;
473+ object-fit : cover ;
474+ }
475+
436476@media (max-width : 550px ) {
437477 .metadata {
438478 flex-direction : column ;
0 commit comments