From 1bf5e3fe55defe95114c9df69b62cc1b40761a0b Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 2 Jan 2024 02:14:22 -0800
Subject: refactor(media): move hover cover

---
 src/lib/Media/HoverCover.svelte | 34 ----------------------------------
 1 file changed, 34 deletions(-)
 delete mode 100644 src/lib/Media/HoverCover.svelte

(limited to 'src/lib/Media/HoverCover.svelte')

diff --git a/src/lib/Media/HoverCover.svelte b/src/lib/Media/HoverCover.svelte
deleted file mode 100644
index d4009bec..00000000
--- a/src/lib/Media/HoverCover.svelte
+++ /dev/null
@@ -1,34 +0,0 @@
-<script lang="ts">
-	import type { Media } from '$lib/AniList/media';
-	import type { SubsPleaseEpisode } from './Anime/Airing/Subtitled/subsPlease';
-
-	export let hovering = false;
-	export let hoveredItem: SubsPleaseEpisode | null = null;
-	export let hoveredMedia: Media | null = null;
-	export let imageStyle = '';
-</script>
-
-{#if hovering}
-	<img
-		class="hover-image show"
-		src={hoveredMedia
-			? hoveredMedia.coverImage.extraLarge
-			: `https://subsplease.org${hoveredItem?.image_url}`}
-		alt="Media Cover"
-		style={imageStyle}
-	/>
-{/if}
-
-<style>
-	.hover-image {
-		position: fixed;
-		z-index: 1000;
-		width: 300px;
-		height: auto;
-		display: none;
-	}
-
-	.show {
-		display: block;
-	}
-</style>
-- 
cgit v1.2.3

