mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 04:45:15 +00:00
fix(frontend): ブラーエフェクトを有効にしている状態で高負荷になる問題を修正
This commit is contained in:
parent
7ae1d6511a
commit
0729678398
2 changed files with 2 additions and 20 deletions
|
@ -18,7 +18,7 @@
|
||||||
- 投稿したコンテンツのAIによる学習を軽減するオプションを追加
|
- 投稿したコンテンツのAIによる学習を軽減するオプションを追加
|
||||||
|
|
||||||
### Client
|
### Client
|
||||||
-
|
- Fix: ブラーエフェクトを有効にしている状態で高負荷になる問題を修正
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
-
|
-
|
||||||
|
|
|
@ -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">
|
<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"/>
|
<img :class="$style.inner" :src="url" decoding="async"/>
|
||||||
<MkUserOnlineIndicator v-if="indicator" :class="$style.indicator" :user="user"/>
|
<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 :class="$style.earLeft">
|
||||||
<div v-if="false" :class="$style.layer">
|
<div v-if="false" :class="$style.layer">
|
||||||
<div :class="$style.plot" :style="{ backgroundImage: `url(${JSON.stringify(url)})` }"/>
|
<div :class="$style.plot" :style="{ backgroundImage: `url(${JSON.stringify(url)})` }"/>
|
||||||
|
@ -154,24 +154,6 @@ watch(() => props.user.avatarBlurhash, () => {
|
||||||
padding: 50%;
|
padding: 50%;
|
||||||
pointer-events: none;
|
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,
|
> .earLeft,
|
||||||
> .earRight {
|
> .earRight {
|
||||||
contain: strict;
|
contain: strict;
|
||||||
|
|
Loading…
Reference in a new issue