1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-21 06:25:42 +02:00

fix(frontend): confettiの実行がアニメーション設定を考慮していない問題を修正 (#16714)

* fix(frontend): confettiの実行がアニメーション設定を考慮していない問題を修正

* Update Changelog

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
かっこかり
2025-10-27 18:41:03 +09:00
committed by GitHub
parent 17da44078b
commit 4e16e23acd
5 changed files with 20 additions and 9 deletions

View File

@@ -7,6 +7,7 @@ import { markRaw, ref } from 'vue';
import * as Misskey from 'misskey-js';
import lightTheme from '@@/themes/l-light.json5';
import darkTheme from '@@/themes/d-green-lime.json5';
import { prefersReducedMotion } from '@@/js/config.js';
import { hemisphere } from '@@/js/intl-const.js';
import type { DeviceKind } from '@/utility/device-kind.js';
import type { Plugin } from '@/plugin.js';
@@ -220,11 +221,11 @@ export const store = markRaw(new Pizzax('base', {
},
animation: {
where: 'device',
default: !window.matchMedia('(prefers-reduced-motion)').matches,
default: !prefersReducedMotion,
},
animatedMfm: {
where: 'device',
default: !window.matchMedia('(prefers-reduced-motion)').matches,
default: !prefersReducedMotion,
},
advancedMfm: {
where: 'device',
@@ -248,7 +249,7 @@ export const store = markRaw(new Pizzax('base', {
},
disableShowingAnimatedImages: {
where: 'device',
default: window.matchMedia('(prefers-reduced-motion)').matches,
default: prefersReducedMotion,
},
emojiStyle: {
where: 'device',