From: Danilo M. Date: Tue, 21 Apr 2026 21:48:20 +0000 (+0200) Subject: fix: use href for deterministic hash and increase padding for safety X-Git-Tag: release_22042026-1342~20 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=4cdfce4c6c50dd527dab533cef519484a6353a0a;p=danix.xyz-2.git fix: use href for deterministic hash and increase padding for safety --- diff --git a/themes/danix-xyz-hacker/assets/js/tag-cloud-spiral.js b/themes/danix-xyz-hacker/assets/js/tag-cloud-spiral.js index e107ed5..68b3d99 100644 --- a/themes/danix-xyz-hacker/assets/js/tag-cloud-spiral.js +++ b/themes/danix-xyz-hacker/assets/js/tag-cloud-spiral.js @@ -58,7 +58,7 @@ document.addEventListener('DOMContentLoaded', function () { links.forEach(function (link, i) { var w = sizes[i].w; var h = sizes[i].h; - var seed = hashAngle(link.textContent.trim()); + var seed = hashAngle(link.href); var theta = seed; var placed_rect; @@ -117,6 +117,6 @@ document.addEventListener('DOMContentLoaded', function () { }); // Set container height to fit all tags + 2rem bottom padding (32px) - container.style.height = (maxBottom - minTop + 32) + 'px'; + container.style.height = (maxBottom - minTop + 48) + 'px'; }); });