make gifs animate on hover

This commit is contained in:
MathMan05 2025-04-08 20:51:57 -05:00
parent 25817fdaba
commit 4a9a17814e
10 changed files with 127 additions and 47 deletions

View file

@ -102,7 +102,7 @@ class Direct extends Guild {
const div = document.createElement("div");
div.classList.add("flexltr", "liststyle");
user.bind(div);
div.append(user.buildpfp());
div.append(user.buildpfp(undefined, div));
const userinfos = document.createElement("div");
userinfos.classList.add("flexttb");
@ -417,7 +417,7 @@ class Group extends Channel {
const myhtml = document.createElement("span");
myhtml.classList.add("ellipsis");
myhtml.textContent = this.name;
div.appendChild(this.user.buildpfp());
div.appendChild(this.user.buildpfp(undefined, div));
div.appendChild(myhtml);
(div as any).myinfo = this;
div.onclick = (_) => {