From 2e7a53d0f818786df60ff451d901dcd68d8930f8 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 15 Jan 2024 22:21:50 -0800
Subject: fix(sequelspy): move hover cover to title

---
 src/lib/Tools/SequelSpy.svelte | 40 +++++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 19 deletions(-)

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

diff --git a/src/lib/Tools/SequelSpy.svelte b/src/lib/Tools/SequelSpy.svelte
index acaf9cdf..21a6ce4d 100644
--- a/src/lib/Tools/SequelSpy.svelte
+++ b/src/lib/Tools/SequelSpy.svelte
@@ -59,28 +59,30 @@
 	{:then currentPrequels}
 		<ul>
 			{#each currentPrequels as prequel}
-				<li
-					on:mouseenter={() => {
-						const response = onMouseEnter(prequel);
+				<li>
+					<a
+						href={`https://anilist.co/anime/${prequel.id}`}
+						target="_blank"
+						on:mouseenter={() => {
+							const response = onMouseEnter(prequel);
 
-						hoverCoverState.hovering = response.hovering;
-						hoverCoverState.item = response.item;
-						hoverCoverState.media = response.media;
-					}}
-					on:mouseleave={() => {
-						const response = onMouseLeave();
+							hoverCoverState.hovering = response.hovering;
+							hoverCoverState.item = response.item;
+							hoverCoverState.media = response.media;
+						}}
+						on:mouseleave={() => {
+							const response = onMouseLeave();
 
-						hoverCoverState.hovering = response.hovering;
-						hoverCoverState.item = response.item;
-						hoverCoverState.media = response.media;
-					}}
-					on:mousemove={(e) => {
-						const response = onMouseMove(e, 300);
+							hoverCoverState.hovering = response.hovering;
+							hoverCoverState.item = response.item;
+							hoverCoverState.media = response.media;
+						}}
+						on:mousemove={(e) => {
+							const response = onMouseMove(e, 300);
 
-						hoverCoverState.style = response.style;
-					}}
-				>
-					<a href={`https://anilist.co/anime/${prequel.id}`} target="_blank">
+							hoverCoverState.style = response.style;
+						}}
+					>
 						<MediaTitle title={prequel.title} />
 					</a>
 					<span style="opacity: 50%;">|</span>
-- 
cgit v1.2.3

