diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-21 23:48:20 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-21 23:48:20 +0200 |
| commit | 4cdfce4c6c50dd527dab533cef519484a6353a0a (patch) | |
| tree | e8cdf40cd886515ed80d460fdeb0ebf2ddf7edf1 | |
| parent | 4cb46b54883e164e07038a378b5d8d4b018f77cc (diff) | |
| download | danixxyz-4cdfce4c6c50dd527dab533cef519484a6353a0a.tar.gz danixxyz-4cdfce4c6c50dd527dab533cef519484a6353a0a.zip | |
fix: use href for deterministic hash and increase padding for safety
| -rw-r--r-- | themes/danix-xyz-hacker/assets/js/tag-cloud-spiral.js | 4 |
1 files changed, 2 insertions, 2 deletions
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'; }); }); |
