diff --git a/docs/download/_download.html b/docs/download/_download.html index 6c6ffd69f8..f007da377d 100644 --- a/docs/download/_download.html +++ b/docs/download/_download.html @@ -74,11 +74,6 @@ } - window.tippy("a.checksum[data-tippy-content]", { - interactive: true, - placement: "top-end", - maxWidth: "none", - }); }) .catch((err) => { console.log(err); @@ -217,7 +212,18 @@ } const table = createTable(); - createHeadingRow(table, ["Platform", "Download", "Size", "SHA-256"]); + // Link the header to the release's checksums.txt so the full values + // stay reachable even where narrow screens truncate the hashes. + const checksumsAsset = assets.find((asset) => + asset.name.endsWith("-checksums.txt") + ); + let shaHeading = "SHA-256"; + if (checksumsAsset) { + shaHeading = window.document.createElement("a"); + shaHeading.href = checksumsAsset.download_url; + shaHeading.innerText = "SHA-256"; + } + createHeadingRow(table, ["Platform", "Download", "Size", shaHeading]); const tbody = table.createTBody(); assets.forEach((asset) => { @@ -228,11 +234,6 @@ } downloadTableContainer.append(table); - window.tippy(".checksum[data-tippy-content]", { - interactive: true, - placement: "top-end", - maxWidth: "none", - }); } function createTable() { @@ -245,12 +246,14 @@ const header = table.createTHead(); var row = header.insertRow(0); row.className = "header"; - let cellCount = 0; headings.forEach((heading) => { - const cell = (row.insertCell( - cellCount - ).outerHTML = `