Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed AvatarHover plugin #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jericjan
Copy link

@jericjan jericjan commented Feb 16, 2022

all the class names changed so i just updated them

ignore the block comment saying //doesn't work still???. it does work. you just need the Guilds option enabled in Avatar Hover's settings

all the class names changed so i just updated them
@ThatFirey
Copy link

The avatars get pixelated when I hover on them

top = size > boundsWindow.height ? (boundsWindow.height - size) / 2 : boundsTarget.bottom + size > boundsWindow.height ? boundsTarget.top - size : boundsTarget.bottom;

if ("none" === (imageUrl = (((ref = target.querySelector("img")) != null ? ref.src : void 0) || target.src || getComputedStyle(target).backgroundImage.match(/^url\((["']?)(.+)\1\)$/)[2]).replace(/\?size=\d{2,4}\)?$/, `?size=${size}`))) {
if ("none" === (imageUrl = (((ref = target.querySelector("img")) != null ? ref.src : void 0) || target.src || getComputedStyle(target).backgroundImage.match(/^url\((["']?)(.+)\1\)$/)[2]).replace(/\?size=\d{3,4}\)?$/, `?size=${size}`))) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes it so that some avatars stay at 28px because 28 is a 2 digit number and not 3.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change makes avatars pixelated, you shouldn't do it

@Kyhze
Copy link

Kyhze commented Mar 20, 2022

Looks like it broke again...

@jericjan
Copy link
Author

Works fine for me rn

@Kyhze
Copy link

Kyhze commented Mar 21, 2022

My bad, you're right. The original plugin was active for some reason. I re-applied this one instead and now everything works correctly. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants