refactor: rework the frontend to move topics to the top

This commit is contained in:
Andy Burke 2025-09-10 19:38:38 -07:00
parent fac8f409f4
commit 11ecd86bb9
14 changed files with 362 additions and 292 deletions

View file

@ -146,9 +146,9 @@ new MutationObserver((mutations) => {
VIZ_RGB = window
.getComputedStyle(CANVAS)
.color.slice(4, -1)
.split(",")
.map((v) => parseInt(v));
.color.slice(11, -1)
.split(/[ ,]/)
.map((v) => parseInt(Math.min(v * 255, 255)));
ACTX = ACTX ?? new AudioContext();