From ddfc9fd89d828fe3a3c43d9f6a1b43f7e505669c Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 26 Apr 2024 16:40:29 -0700
Subject: feat(schedule): use grid

---
 src/lib/Schedule/CoverBypass.svelte | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'src/lib/Schedule/CoverBypass.svelte')

diff --git a/src/lib/Schedule/CoverBypass.svelte b/src/lib/Schedule/CoverBypass.svelte
index 3b0b1f41..e4c76de8 100644
--- a/src/lib/Schedule/CoverBypass.svelte
+++ b/src/lib/Schedule/CoverBypass.svelte
@@ -11,6 +11,7 @@
 	export let media: Media | null;
 	export let entry: SubsPleaseEpisode;
 	export let cover = true;
+	export let showTooltip = true;
 
 	const abbreviateTo = 40;
 
@@ -38,9 +39,11 @@
 			title={media.title}
 			abbreviate
 			{abbreviateTo}
-			tooltip={media.title.english?.length > abbreviateTo ||
-				media.title.romaji?.length > abbreviateTo ||
-				media.title.native?.length > abbreviateTo}
+			tooltip={showTooltip
+				? media.title.english?.length > abbreviateTo ||
+				  media.title.romaji?.length > abbreviateTo ||
+				  media.title.native?.length > abbreviateTo
+				: ''}
 		/>
 	{:else}
 		<span title={entry.title} use:tooltip>
-- 
cgit v1.2.3

