From d1b17d9d8e01194882e748b0ecad5ff667b3518e Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 13 May 2024 03:52:01 -0700
Subject: fix(FallbackBadge): only relative tooltip if backdrop-filter css

---
 src/lib/User/BadgeWall/FallbackBadge.svelte | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/lib/User/BadgeWall/FallbackBadge.svelte')

diff --git a/src/lib/User/BadgeWall/FallbackBadge.svelte b/src/lib/User/BadgeWall/FallbackBadge.svelte
index 8317b2e0..55412aa5 100644
--- a/src/lib/User/BadgeWall/FallbackBadge.svelte
+++ b/src/lib/User/BadgeWall/FallbackBadge.svelte
@@ -7,6 +7,7 @@
 	import { databaseTimeToDate } from '../../Utility/time';
 	import { cubicOut } from 'svelte/easing';
 	import { dev } from '$app/environment';
+	import type { UserPreferences } from '$lib/Database/userPreferences';
 
 	export let source: string | null | undefined;
 	export let alternative: string | null | undefined;
@@ -20,6 +21,7 @@
 	export let selectedBadge: Badge | null = null;
 	export let awc = false;
 	export let index: number | null = null;
+	export let preferences: UserPreferences;
 
 	let replaceCount = 0;
 	let badgeReference: HTMLImageElement;
@@ -72,7 +74,7 @@
 		}`}
 		pin={`badge-${awc ? index : badge.id}`}
 		pinPosition="top"
-		relative
+		relative={preferences.badge_wall_css.includes('backdrop-filter')}
 	>
 		<a
 			href={awc ? badgeToAny(badge).link : '#'}
-- 
cgit v1.2.3

