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

PFP decorations off centered. #34

Open
gustish opened this issue May 21, 2023 · 2 comments
Open

PFP decorations off centered. #34

gustish opened this issue May 21, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@gustish
Copy link

gustish commented May 21, 2023

The latest avatar decorations seem to be off centered a bit, not that biggest deal but so you know.

image

@gustish gustish added the bug Something isn't working label May 21, 2023
@LeviSnoot
Copy link

Not read up enough to contribute directly to the project but here's the CSS snippet I used to fix it:

.avatarDecoration__14b3c {
    left: calc((9px) - (var(--custom-message-avatar-decoration-size) - var(--custom-message-avatar-size))/2) !important;
    margin-top: calc(2px - var(--custom-message-spacing-vertical-container-cozy) - (var(--custom-message-avatar-decoration-size) - var(--custom-message-avatar-size))/2) !important;
}

@1Naim
Copy link

1Naim commented Oct 26, 2024

The updated class for latest Discord as of time of writing

.avatarDecoration_f9f2ca {
    left: calc((9px) - (var(--custom-message-avatar-decoration-size) - var(--custom-message-avatar-size))/2) !important;
    margin-top: calc(2px - var(--custom-message-spacing-vertical-container-cozy) - (var(--custom-message-avatar-decoration-size) - var(--custom-message-avatar-size))/2) !important;
}

No modifications made from the above snippet except for updating the css class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants