-
-
Notifications
You must be signed in to change notification settings - Fork 565
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(ui): Profile avatar image motion setting #3044 #3066
fix(ui): Profile avatar image motion setting #3044 #3066
Conversation
✅ Deploy Preview for elk-zone ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for elk-docs canceled.
|
…duced-motion-setting
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.
Thanks for the contribution! I confirmed this change stopped gif animation by replacing static image like png when enabled prefers-reduced-motion setting.
nice, just commenting on it, I was a little worried, I don't know if at some point it might happen that the profile doesn't have a photo or doesn't have a static photo |
Good point. Mastodon has ensured But the same property might not exist on other fediverse servers so it's safer to fall back to |
For example, something like this? const preferredMotion = usePreferredReducedMotion()
const accountAvatarSrc = computed(() => {
- return preferredMotion.value === 'reduce' ? account.avatarStatic : account.avatar
+ return preferredMotion.value === 'reduce' ? (account?.avatarStatic ?? account.avatar) : account.avatar |
ref. GoToSocial returns static avatar like Mastodon: Routes and Methods - GoToSocial Documentation - https://docs.gotosocial.org/en/latest/api/swagger/ |
Yes, but idk if is really needed... thanks for docs link. I should also remove the structure props, because in the test log (issue #2934) is complaining about. I wanted to make the corrections, I don't know if I should make the changes to my fork and create the pull request here again... |
No description provided.