From 7dc9fe4e24a3974bd61b05002af4864aa1ad8564 Mon Sep 17 00:00:00 2001 From: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Fri, 22 Sep 2023 16:03:10 +0900 Subject: feat(frontend): センシティブなメディアを目立たせる設定を追加 (#11851) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * (add) highlight sensitive image * Update Changelog * (change) 設定の位置 * (add) apply mediaHighlight to video * (change) image -> media * Update CHANGELOG * やっぱもうちょっと太い方がいい * (fix) style * Update ja-JP.yml --------- Co-authored-by: syuilo --- packages/frontend/src/store.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/frontend/src/store.ts') diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts index 8a43ba892d..16483f0cf7 100644 --- a/packages/frontend/src/store.ts +++ b/packages/frontend/src/store.ts @@ -185,6 +185,10 @@ export const defaultStore = markRaw(new Storage('base', { where: 'device', default: 'respect' as 'respect' | 'force' | 'ignore', }, + highlightSensitiveMedia: { + where: 'device', + default: false, + }, animation: { where: 'device', default: !window.matchMedia('(prefers-reduced-motion)').matches, -- cgit v1.2.3-freya