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

Fix some account avatars on public pages having incorrect size #13692

Merged
merged 3 commits into from
May 13, 2020

Conversation

ClearlyClaire
Copy link
Contributor

No description provided.

@@ -1357,6 +1353,12 @@
}
}

.account__avatar:not([width]) {
Copy link
Member

@Gargron Gargron May 10, 2020

Choose a reason for hiding this comment

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

This looks like a hack. What's going on here? If it has a width attribute, wouldn't it be an img tag then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is, but so are the other cases we want that style to apply to. It's just that the only case that use a non-default 36px also set the width and height attributes.

@ClearlyClaire ClearlyClaire force-pushed the fixes/public-pages-avatar-size branch from 94da9ff to 261d578 Compare May 13, 2020 14:31
@ClearlyClaire
Copy link
Contributor Author

Updated to target public pages only, regardless of width and height attributes, probably cleaner that way.
Also removed said width and height attributes, they serve no purpose here.

@Gargron Gargron merged commit 4850338 into mastodon:master May 13, 2020
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.

2 participants