develop #11

Merged
qbism merged 50 commits from AkkomaGang/akkoma-fe:develop into develop 2023-08-01 06:26:29 +00:00
Showing only changes of commit 91eab22d77 - Show all commits

View file

@ -11,17 +11,13 @@ const StillImage = {
],
data () {
return {
stopGifs: this.$store.getters.mergedConfig.stopGifs,
stopGifs: this.$store.getters.mergedConfig.stopGifs || window.matchMedia('(prefers-reduced-motion: reduce)').matches,
isAnimated: false,
prefersReducedMotion: true
}
},
created () {
this.prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches
},
computed: {
animated () {
return this.stopGifs && this.isAnimated && this.prefersReducedMotion
return this.stopGifs && this.isAnimated
},
style () {
const appendPx = (str) => /\d$/.test(str) ? str + 'px' : str