[feat] Support prefers-reduced-motion disabling auto-play of animated images (#324) #325

Merged
floatingghost merged 3 commits from Mergan/pleroma-fe:support-prefers-reduced-motion into develop 2023-07-21 19:37:44 +00:00
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ const StillImage = {
],
data () {
return {
stopGifs: this.$store.getters.mergedConfig.stopGifs,
isAnimated: false
stopGifs: this.$store.getters.mergedConfig.stopGifs || window.matchMedia('(prefers-reduced-motion: reduce)').matches,
isAnimated: false,
}
},
computed: {