mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
fix: banner blur
This commit is contained in:
parent
df11946d52
commit
5bd5a8cc65
1 changed files with 3 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
|||
class="banner"
|
||||
:style="{
|
||||
backgroundImage: `url('${user.bannerUrl}')`,
|
||||
'--backgroundImageStatic': getStaticImageUrl(user.bannerUrl)
|
||||
'--backgroundImageStatic': defaultStore.state.useBlurEffect ? `url('${getStaticImageUrl(user.bannerUrl)}')` : null
|
||||
}"
|
||||
></div>
|
||||
<div class="fade"></div>
|
||||
|
@ -388,6 +388,7 @@ import { getScrollPosition } from "@/scripts/scroll";
|
|||
import { getStaticImageUrl } from "@/scripts/get-static-image-url";
|
||||
import number from "@/filters/number";
|
||||
import { userPage } from "@/filters/user";
|
||||
import { defaultStore } from "@/store";
|
||||
import * as os from "@/os";
|
||||
import { i18n } from "@/i18n";
|
||||
import { $i } from "@/account";
|
||||
|
@ -515,7 +516,7 @@ onUnmounted(() => {
|
|||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: var(--blur, --backgroundImageStatic);
|
||||
background: var(--backgroundImageStatic);
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
pointer-events: none;
|
||||
|
|
Loading…
Reference in a new issue