Basic housekeeping, as well as very basic work on per-channel !toke commands

This commit is contained in:
rainbow napkin 2024-12-15 07:25:38 -05:00
parent dc01b8a15a
commit 575244ac53
22 changed files with 139 additions and 35 deletions

View file

@ -228,7 +228,12 @@ class canopyUXUtils{
}
calcWidth(px){
return (px / window.innerWidth) * 100;
//I cannot fucking believe they added a clamp function to CSS before JS...
const width = (px / window.innerWidth) * 100;
//Little hacky but this ensures that if our click dragger tries to do something that it should absolutely never be doing
//it'll be told to sit down, shut up, and fuck off.
return width < 100 ? width : 20;
}