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

Profile pages force square user avatar #18719

Open
jhenshaw opened this issue Jun 27, 2022 · 1 comment
Open

Profile pages force square user avatar #18719

jhenshaw opened this issue Jun 27, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jhenshaw
Copy link

jhenshaw commented Jun 27, 2022

Steps to reproduce the problem

  1. Visit your on-instance profile where the user has uploaded a non-square avatar image with transparency (e.g. https://instance.com/web/accounts/1)
  2. Notice that the avatar region forces a black-background and gray border around it, looking bad. Other Mastodon instances of same avatar use transparent backgrounds propertly.
  3. Looks like component.scss line 6935 but I'm not positive the is the only / correct source of the style.

See attached for demonstration of bug and how it should look.

Screen Shot 2022-06-27 at 12 05 27 AM

Screen Shot 2022-06-27 at 12 05 17 AM

Note that this behaves correctly on public profile views, so this is a very minor issue. If you hit https://instance.com/@account, you see:

Screen Shot 2022-06-27 at 1 40 45 AM

which is how it should look on all pages.

Expected behaviour

Transparent background and border around avatar images on user profile page

Actual behaviour

Forced-black background and gray border around avatar image (see attached images)

Specifications

tootsuite/mastodon Web FE v3.1.3

@jhenshaw jhenshaw added the bug Something isn't working label Jun 27, 2022
@patrick91
Copy link

I've done a custom css for my custom instance, if this is interesting for everyone I can make a PR here :)

The PR removes the background and the negative margin from the avatar in the profile page. Example here: https://social.python.it/@pycon

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

2 participants