From ad489e34aebf2a7a61a3295e665840317bc3e808 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 28 Aug 2023 03:48:24 -0700
Subject: feat(settings): limit inputs

---
 src/routes/settings/+page.svelte | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/routes/settings/+page.svelte')

diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index c3153700..13f2099a 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -116,11 +116,13 @@
 		</li>
 		<li><a href="#" on:click={pruneAll}>Re-cache <b>ALL</b> manga</a></li>
 		<li>
-			Re-cache <b>ALL</b> media keys every <input type="number" bind:value={$cacheMinutes} /> minutes
+			Re-cache <b>ALL</b> media keys every
+			<input type="number" bind:value={$cacheMinutes} min="1" max="60" placeholder="30" /> minutes
 		</li>
 		<li>
 			Re-cache <b>ALL</b> manga chapter counts every
-			<input type="number" bind:value={$cacheMangaMinutes} /> minutes
+			<input type="number" bind:value={$cacheMangaMinutes} min="1" max="1440" placeholder="60" />
+			minutes
 			<small style="opacity: 50%;"
 				>Values may cause <a href="https://en.wikipedia.org/wiki/Rate_limiting"
 					>rate-limiting depending on how much releasing manga are on your lists</a
-- 
cgit v1.2.3

