Skip to content

Commit 03ec7a8

Browse files
committed
site fixed
1 parent 45f07f8 commit 03ec7a8

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

site/layouts/shortcodes/leaderboard-composite.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
html.dark .composite-resource-toggle.active { color:#34d399; border-color:#059669; background:rgba(5,150,105,0.12); }
9191
</style>
9292

93-
<div style="overflow-x:auto; margin-top:1rem;">
93+
<div style="overflow-x:auto; overflow-y:hidden; margin-top:1rem;">
9494
<div id="composite-table" class="lb" style="min-width:50rem;">
9595
</div>
9696
</div>
@@ -364,7 +364,8 @@
364364
}
365365
var sublabel = proto === 'h3' ? 'HTTP/3' : proto === 'h2' ? 'HTTP/2' : 'HTTP/1.1';
366366
var label = profileLabels[pid] + (scored ? '' : ' *');
367-
headerHtml += '<div style="text-align:right; font-size:0.62rem; line-height:1.2;' + bgStyle + '" title="' + profileLabels[pid] + ' (' + sublabel + ')' + (scored ? ' — counts toward composite score' : ' — reference only, does not count toward composite score') + '">' + label + '<br><span style="color:#94a3b8; font-size:0.6rem;">(' + sublabel + ')</span></div>';
367+
var shortProto = proto === 'h3' ? 'H3' : proto === 'h2' ? 'H2' : 'H1';
368+
headerHtml += '<div style="text-align:right; font-size:0.62rem; line-height:1.2;' + bgStyle + '" title="' + profileLabels[pid] + ' (' + sublabel + ')' + (scored ? ' — counts toward composite score' : ' — reference only, does not count toward composite score') + '">' + label + '<br><span style="font-weight:700; font-size:0.6rem;">' + shortProto + '</span></div>';
368369
});
369370
header.innerHTML = headerHtml;
370371
table.appendChild(header);

site/layouts/shortcodes/leaderboard.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@
404404
.lb-tab { padding: 0.5rem 0.4rem; font-size: 0.75rem; }
405405
.lb-filters { flex-wrap: wrap; }
406406
.lb-search-input { width: 100%; }
407-
.lb { overflow-x: auto; -webkit-overflow-scrolling: touch; }
407+
.lb { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
408408
.lb-row { min-width: 58rem; }
409409
.lb-row.lb-row-reconn { min-width: 64rem; }
410410
.lb-popup { padding: 1.5rem; max-width: 95vw; }
@@ -867,6 +867,7 @@
867867
document.addEventListener('click', function(e) {
868868
var row = e.target.closest('.lb-row:not(.lb-header)');
869869
if (!row) return;
870+
if (!row.closest('#lb-wrapper')) return;
870871

871872
var name = row.dataset.name;
872873
var lang = row.dataset.lang;

0 commit comments

Comments
 (0)