From b3f7c618f06cd5f4d47ea97dc49d69658a38624a Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sat, 2 Dec 2023 06:01:54 -0800
Subject: feat(wrapped): adjust highest rated display

---
 src/lib/Tools/Wrapped.svelte | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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

diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index bfd9bbe0..99a984fd 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -32,6 +32,7 @@
 	let includeRepeats = false;
 	let width = 980;
 	let forceDark = false;
+	let highestRatedCount = 5;
 
 	$: {
 		includeMusic = includeMusic;
@@ -339,7 +340,7 @@
 							<div>
 								<b>Highest Rated Anime</b>
 								<ol>
-									{#each animeList?.slice(0, 5) as anime}
+									{#each animeList?.slice(0, highestRatedCount) as anime}
 										<li>
 											<a href={`https://anilist.co/anime/${anime.id}`} target="_blank">
 												{abbreviate(
@@ -370,7 +371,7 @@
 							<div>
 								<b>Highest Rated Manga</b>
 								<ol>
-									{#each mangaList?.slice(0, 5) as manga}
+									{#each mangaList?.slice(0, highestRatedCount) as manga}
 										<li>
 											<a href={`https://anilist.co/manga/${manga.id}`} target="_blank">
 												{abbreviate(
@@ -414,6 +415,8 @@
 					<input type="checkbox" bind:checked={includeMusic} /> Include music<br />
 					<input type="checkbox" bind:checked={includeRepeats} /> Include rewatches & rereads<br />
 					<input type="checkbox" bind:checked={includeSpecials} /> Include specials and OVAs<br />
+					<input type="range" min="1" max="10" bind:value={highestRatedCount} /> Highest rated media
+					count <br />
 					<br />
 					Manual width override
 					<input type="range" min="1" max="1920" bind:value={width} />
-- 
cgit v1.2.3

