From 84ed9e26cdeb7e02684f019ca7d07fef5286351e Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 22 Aug 2024 04:36:48 -0700
Subject: feat(settings): data saver

---
 src/lib/Tools/Likes.svelte | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/lib/Tools/Likes.svelte')

diff --git a/src/lib/Tools/Likes.svelte b/src/lib/Tools/Likes.svelte
index d4f62cb9..fbbc30af 100644
--- a/src/lib/Tools/Likes.svelte
+++ b/src/lib/Tools/Likes.svelte
@@ -4,6 +4,7 @@
 	import RateLimited from '$lib/Error/RateLimited.svelte';
 	import Skeleton from '$lib/Loading/Skeleton.svelte';
 	import tooltip from '$lib/Tooltip/tooltip';
+	import settings from '$stores/settings';
 	import InputTemplate from './InputTemplate.svelte';
 
 	let submission = '';
@@ -35,7 +36,9 @@
 							<a
 								href={`https://anilist.co/user/${like.name}`}
 								target="_blank"
-								title={`<img src="${like.avatar?.large}" style="width: 150px; object-fit: cover; border-radius: 8px;" />`}
+								title={`<img src="${
+									$settings.displayDataSaver ? like.avatar?.medium : like.avatar?.large
+								}" style="width: 150px; object-fit: cover; border-radius: 8px;" />`}
 								use:tooltip
 							>
 								{like.name}
-- 
cgit v1.2.3

