Skip to content

Commit 8e77247

Browse files
committed
fix(BlobModal): content type
1 parent 8579657 commit 8e77247

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/modals/BlobModal.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,14 @@ const handlePreviewContent = () => {
214214
<Flex direction="column" gap="8" :class="$style.badge">
215215
<Text size="12" weight="500" color="secondary"> Content Type </Text>
216216

217-
<Text size="13" weight="600" color="primary">
217+
<Text v-if="cacheStore.selectedBlob.content_type" size="13" weight="600" color="primary">
218218
{{ cacheStore.selectedBlob.content_type }}
219219
</Text>
220+
<Text v-else-if="blob.content_type" size="13" weight="600" color="primary">
221+
{{ blob.content_type }}
222+
</Text>
223+
<Skeleton v-else-if="isLoading && !isStopped" w="60" h="13" />
224+
<Text v-else size="13" weight="600" color="tertiary">Unknown</Text>
220225
</Flex>
221226

222227
<NuxtLink :to="`/tx/${cacheStore.selectedBlob.tx.hash}`" target="_blank" :class="[$style.badge, $style.selectable]">

0 commit comments

Comments
 (0)