fix(frontend): ブラーエフェクトを有効にしている状態で高負荷になる問題を修正
This commit is contained in:
		| @@ -2,7 +2,7 @@ | ||||
| <component :is="link ? MkA : 'span'" v-user-preview="preview ? user.id : undefined" v-bind="bound" class="_noSelect" :class="[$style.root, { [$style.animation]: animation, [$style.cat]: user.isCat, [$style.square]: squareAvatars }]" :style="{ color }" :title="acct(user)" @click="onClick"> | ||||
| 	<img :class="$style.inner" :src="url" decoding="async"/> | ||||
| 	<MkUserOnlineIndicator v-if="indicator" :class="$style.indicator" :user="user"/> | ||||
| 	<div v-if="user.isCat" :class="[$style.ears, { [$style.mask]: useBlurEffect }]"> | ||||
| 	<div v-if="user.isCat" :class="[$style.ears]"> | ||||
| 		<div :class="$style.earLeft"> | ||||
| 			<div v-if="false" :class="$style.layer"> | ||||
| 				<div :class="$style.plot" :style="{ backgroundImage: `url(${JSON.stringify(url)})` }"/> | ||||
| @@ -154,24 +154,6 @@ watch(() => props.user.avatarBlurhash, () => { | ||||
| 		padding: 50%; | ||||
| 		pointer-events: none; | ||||
|  | ||||
| 		&.mask { | ||||
| 			-webkit-mask: | ||||
| 				url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><filter id="a"><feGaussianBlur in="SourceGraphic" stdDeviation="1"/></filter><circle cx="16" cy="16" r="15" filter="url(%23a)"/></svg>') center / 50% 50%, | ||||
| 				linear-gradient(#fff, #fff); | ||||
| 			-webkit-mask-composite: destination-out, source-over; | ||||
| 			mask: | ||||
| 				url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><filter id="a"><feGaussianBlur in="SourceGraphic" stdDeviation="1"/></filter><circle cx="16" cy="16" r="15" filter="url(%23a)"/></svg>') exclude center / 50% 50%, | ||||
| 				linear-gradient(#fff, #fff); // polyfill of `image(#fff)` | ||||
|  | ||||
| 			> .earLeft { | ||||
| 				animation: eartightleft 6s infinite; | ||||
| 			} | ||||
|  | ||||
| 			> .earRight { | ||||
| 				animation: eartightright 6s infinite; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		> .earLeft, | ||||
| 		> .earRight { | ||||
| 			contain: strict; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo