summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkUserInfo.vue
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-07-18 01:22:24 +0900
committerGitHub <noreply@github.com>2024-07-18 01:22:24 +0900
commit3331f3972a02f8b662a3bf3e5a94f7b0a45ebbb6 (patch)
tree6b2b1743ed31595ba2e16156014c45b7012f6219 /packages/frontend/src/components/MkUserInfo.vue
parentrefactor(frontend): Improve typing (#14240) (diff)
downloadmisskey-3331f3972a02f8b662a3bf3e5a94f7b0a45ebbb6.tar.gz
misskey-3331f3972a02f8b662a3bf3e5a94f7b0a45ebbb6.tar.bz2
misskey-3331f3972a02f8b662a3bf3e5a94f7b0a45ebbb6.zip
fix(frontend): 「アニメーション画像を再生しない」がオンのときにバナー画像・サーバー背景画像がアニメーションしないように (#14243)
* fix: stop animating banner and backgrounds when stop showing animated images is enabled (cherry picked from commit 8fe2596316e9688509745706ea424f0b4bfd4136) * chore: nest ternary (cherry picked from commit 2783fe5f5bd7c0647db9f9b6fb5e000e4f411092) * chore: flip ternary (cherry picked from commit b9d66f824cff373cc53bfa846a56c16f456a6d5b) * update changelog --------- Co-authored-by: Marie <marie@kaifa.ch>
Diffstat (limited to 'packages/frontend/src/components/MkUserInfo.vue')
-rw-r--r--packages/frontend/src/components/MkUserInfo.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkUserInfo.vue b/packages/frontend/src/components/MkUserInfo.vue
index d6f1ae453c..f0b9606590 100644
--- a/packages/frontend/src/components/MkUserInfo.vue
+++ b/packages/frontend/src/components/MkUserInfo.vue
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div class="_panel" :class="$style.root">
- <div :class="$style.banner" :style="user.bannerUrl ? `background-image: url(${user.bannerUrl})` : ''"></div>
+ <div :class="$style.banner" :style="user.bannerUrl ? `background-image: url(${defaultStore.state.disableShowingAnimatedImages ? getStaticImageUrl(user.bannerUrl) : user.bannerUrl})` : ''"></div>
<MkAvatar :class="$style.avatar" :user="user" indicator/>
<div :class="$style.title">
<MkA :class="$style.name" :to="userPage(user)"><MkUserName :user="user" :nowrap="false"/></MkA>
@@ -41,6 +41,8 @@ import { userPage } from '@/filters/user.js';
import { i18n } from '@/i18n.js';
import { $i } from '@/account.js';
import { isFollowingVisibleForMe, isFollowersVisibleForMe } from '@/scripts/isFfVisibleForMe.js';
+import { getStaticImageUrl } from '@/scripts/media-proxy.js';
+import { defaultStore } from '@/store.js';
defineProps<{
user: Misskey.entities.UserDetailed;