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/Tools/Schedule/Tool.svelte | 42 ++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 22 deletions(-)

(limited to 'src/lib/Tools/Schedule/Tool.svelte')

diff --git a/src/lib/Tools/Schedule/Tool.svelte b/src/lib/Tools/Schedule/Tool.svelte
index 0f29a187..5846e936 100644
--- a/src/lib/Tools/Schedule/Tool.svelte
+++ b/src/lib/Tools/Schedule/Tool.svelte
@@ -109,28 +109,7 @@
 								{#each Object.values(scheduleEntry) as entry}
 									{@const media = associateMedia(scheduledMedia, entry.title)}
 
-									<li
-										class="entry"
-										on:mouseenter={() => {
-											const response = onMouseEnter(media, entry);
-
-											hovering = response.hovering;
-											hoveredItem = response.item;
-											hoveredMedia = response.media;
-										}}
-										on:mouseleave={() => {
-											const response = onMouseLeave();
-
-											hovering = response.hovering;
-											hoveredItem = response.item;
-											hoveredMedia = response.media;
-										}}
-										on:mousemove={(e) => {
-											const response = onMouseMove(e);
-
-											imageStyle = response.style;
-										}}
-									>
+									<li class="entry">
 										<a
 											href={media
 												? outboundLink(media, 'anime', $settings.displayOutboundLinksTo)
@@ -142,6 +121,25 @@
 														titleSelect(media) || entry.title
 												  )}
 											target="_blank"
+											on:mouseenter={() => {
+												const response = onMouseEnter(media, entry);
+
+												hovering = response.hovering;
+												hoveredItem = response.item;
+												hoveredMedia = response.media;
+											}}
+											on:mouseleave={() => {
+												const response = onMouseLeave();
+
+												hovering = response.hovering;
+												hoveredItem = response.item;
+												hoveredMedia = response.media;
+											}}
+											on:mousemove={(e) => {
+												const response = onMouseMove(e);
+
+												imageStyle = response.style;
+											}}
 										>
 											{#if media}
 												<MediaTitleDisplay title={media.title} />
-- 
cgit v1.2.3

