From 7dbc21d39671360e613802c9ae869e36d25c6445 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 3 Jan 2024 20:53:40 -0800
Subject: refactor(list): move hover to title only

---
 src/lib/List/Anime/CleanAnimeList.svelte | 43 ++++++++++++++++----------------
 1 file changed, 22 insertions(+), 21 deletions(-)

(limited to 'src/lib/List/Anime/CleanAnimeList.svelte')

diff --git a/src/lib/List/Anime/CleanAnimeList.svelte b/src/lib/List/Anime/CleanAnimeList.svelte
index c0a737dc..9eb4b646 100644
--- a/src/lib/List/Anime/CleanAnimeList.svelte
+++ b/src/lib/List/Anime/CleanAnimeList.svelte
@@ -66,28 +66,29 @@
 		{@const progress = (anime.mediaListEntry || { progress: 0 }).progress}
 
 		{#if title.includes('Upcoming Episodes') || title.includes('Not Yet Released') || progress !== (anime.nextAiringEpisode?.episode || 9999) - 1}
-			<li
-				class="entry"
-				on:mouseenter={() => {
-					const response = onMouseEnter(anime);
-
-					hovering = response.hovering;
-					hoveredMedia = response.media;
-				}}
-				on:mouseleave={() => {
-					const response = onMouseLeave();
-
-					hovering = response.hovering;
-					hoveredMedia = response.media;
-				}}
-				on:mousemove={(e) => {
-					const response = onMouseMove(e);
-
-					imageStyle = response.style;
-				}}
-			>
+			<li class="entry">
 				<span class="content">
-					<a href={outboundLink(anime, 'anime', $settings.displayOutboundLinksTo)} target="_blank">
+					<a
+						href={outboundLink(anime, 'anime', $settings.displayOutboundLinksTo)}
+						target="_blank"
+						on:mouseenter={() => {
+							const response = onMouseEnter(anime);
+
+							hovering = response.hovering;
+							hoveredMedia = response.media;
+						}}
+						on:mouseleave={() => {
+							const response = onMouseLeave();
+
+							hovering = response.hovering;
+							hoveredMedia = response.media;
+						}}
+						on:mousemove={(e) => {
+							const response = onMouseMove(e);
+
+							imageStyle = response.style;
+						}}
+					>
 						<span
 							style={lastUpdatedMedia === anime.id && anime.episodes !== progress
 								? 'color: lightcoral'
-- 
cgit v1.2.3

