-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 profile avatar being slightly offset into left border (fixes #20822) #20994
Conversation
I don't know why it was shifted in the first place or why the width is specified twice, but this fixes the problem, so it looks fine to me.
I think this was here to align the avatar with the text. Maybe moving |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done something like this in my instance to add transparent bg, it worked well :)
@RiedleroD Would it be possible to do as @ClearlyClaire suggested and move it to the |
@hampuskraft certainly, but negative margin is usually bad practice. I'll see if there's a better way to do it later today and commit the best way I can find. |
In this case, I think a negative margin is the best (if not the only) solution. But if an alternative exists, that could be interesting. |
Well if I knew more about the codebase, I'd simply remove the anyway, to resolve this as quickly as possible, this workaround is good enough for now. Someone should really rewrite that mess though, before too much technical debt accumulates and mastodon ends up looking like youtube or something. |
btw, someone with a working mastodon testing setup should check if my changes actually work as intended. I double- and triple-checked with the changes I make via inspector in my browser, but mastodon is important enough for that to be insufficient. I won't be setting up a whole testing environment for a two-line change though, especially as reviews are required anyway. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should do the trick, but you might want to fix the formatting 😅
my bad
before I forget - comments are *important* !
"Hmm I wonder why it takes this long to get looked at by the crew"
I thought the mastodon team was lackin but it was I who was the fool all along :I well, I'm just glad I finally looked at the contributing guidelines instead of blaming it on "gargron bad hurr durr" |
…odon#20822) (mastodon#20994) * hotfix for mastodon#20822 I don't know why it was shifted in the first place or why the width is specified twice, but this fixes the problem, so it looks fine to me. * realigned pfp with content below * fixed formatting my bad * added comment to explain the negative margin before I forget - comments are *important* ! Co-authored-by: Riedler <riedler@gelse.eu>
…odon#20822) (mastodon#20994) * hotfix for mastodon#20822 I don't know why it was shifted in the first place or why the width is specified twice, but this fixes the problem, so it looks fine to me. * realigned pfp with content below * fixed formatting my bad * added comment to explain the negative margin before I forget - comments are *important* ! Co-authored-by: Riedler <riedler@gelse.eu>
I don't know why it was shifted in the first place or why the width is specified twice, but this fixes the problem, so it looks fine to me.
edit: I now do know why it was shifted, but I ignored the width thing because it's not part of the PR and I don't have to touch the codebase again hopefully