diff --git a/waterfall.html b/waterfall.html index 36703b7..90609f9 100644 --- a/waterfall.html +++ b/waterfall.html @@ -83,8 +83,22 @@ color: white; } + .type-badge { + width: 48px; + height: 18px; + display: flex; + align-items: center; + justify-content: center; + border-radius: 3px; + font-size: 9px; + font-weight: 700; + background: var(--color-bg-secondary); + color: var(--color-text-secondary); + border: 1px solid var(--color-border); + } + .request-label { - width: 250px; + width: 220px; padding: 0 8px; font-size: 11px; color: var(--color-text-primary); diff --git a/waterfall.js b/waterfall.js index 65dfddc..ca5eb4c 100644 --- a/waterfall.js +++ b/waterfall.js @@ -60,9 +60,10 @@ function renderWaterfall() { html += ''; filteredEntries.forEach((entry, index) => { - const label = truncateUrl(entry.url, 35); + const label = truncateUrl(entry.url, 30); const timingBars = renderTimingBars(entry.timing, scale); const statusColor = getStatusColor(entry.status); + const typeBadge = getResourceTypeBadge(entry.resourceType); const sizeKB = (entry.size.transferSize / 1024).toFixed(1); const timeMS = entry.timing.total.toFixed(0); @@ -70,6 +71,7 @@ function renderWaterfall() {