From 5bd5a8cc65f69a5ed1e8b826e67cd20ba0bec810 Mon Sep 17 00:00:00 2001 From: freeplay Date: Sat, 8 Jul 2023 13:06:16 -0400 Subject: [PATCH] fix: banner blur --- packages/client/src/pages/user/home.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/user/home.vue b/packages/client/src/pages/user/home.vue index 24b150bc4..54e4ab10c 100644 --- a/packages/client/src/pages/user/home.vue +++ b/packages/client/src/pages/user/home.vue @@ -26,7 +26,7 @@ class="banner" :style="{ backgroundImage: `url('${user.bannerUrl}')`, - '--backgroundImageStatic': getStaticImageUrl(user.bannerUrl) + '--backgroundImageStatic': defaultStore.state.useBlurEffect ? `url('${getStaticImageUrl(user.bannerUrl)}')` : null }" >
@@ -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;