Skip to content

Commit

Permalink
feat(client): better formatting of network request files
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jan 17, 2022
1 parent cf67644 commit 4e892da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/client/components/Cell/CellNetworkRequests.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ const requestsMapped = computed(() => {
<span>{{ group.count }} {{ resourceType }}s</span>
<span class="opacity-70 ml-2">{{ group.size }}</span>
<template #tooltip>
<div v-for="(item, key) in group.items" :key="key" class="mb-2">
<span class="break-all">{{ item.url.replace(website, '') }}</span>
<span class="opacity-70 ml-2">{{ formatBytes(item.transferSize) }}</span>
<div v-for="(item, key) in group.items" :key="key" class="mb-2 flex text-xs ">
<span class="break-all opacity-90 flex-grow"><a :href="item.url" class="hover:no-underline underline">{{ item.url.replace(website, '') }}</a></span>
<span class="opacity-70 whitespace-nowrap ml-2 flex-shrink break-none">{{ formatBytes(item.transferSize) }}</span>
<span class="opacity-70 whitespace-nowrap ml-2 flex-shrink">{{ Math.round(item.endTime - item.startTime) }}ms</span>
</div>
</template>
</tooltip>
Expand Down

0 comments on commit 4e892da

Please sign in to comment.