From 3bcc3accc659dc76405c22850dd378c54b7d7fe4 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 18 Jan 2024 07:43:37 -0800
Subject: feat(schedule): cover mode

---
 src/lib/Tools/Schedule/Tool.svelte | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'src/lib/Tools/Schedule/Tool.svelte')

diff --git a/src/lib/Tools/Schedule/Tool.svelte b/src/lib/Tools/Schedule/Tool.svelte
index 1e919abf..5dda97cc 100644
--- a/src/lib/Tools/Schedule/Tool.svelte
+++ b/src/lib/Tools/Schedule/Tool.svelte
@@ -12,6 +12,7 @@
 	import Loading from '$lib/Utility/Loading.svelte';
 	import './container.css';
 	import Days from './Days.svelte';
+	import settings from '$stores/settings';
 
 	let subsPleasePromise: Promise<SubsPlease>;
 	let scheduledMediaPromise: Promise<Partial<Media[]>>;
@@ -67,7 +68,11 @@
 			{#if scheduledMedia}
 				{@const columnCount = Math.ceil(Object.keys(subsPlease.schedule).length / 2)}
 
-				<div class="list-container" id="schedule" style={`column-count: ${columnCount}`}>
+				<div
+					class="list-container"
+					id="schedule"
+					style={`column-count: ${columnCount / ($settings.displayScheduleListMode ? 1 : 2)}`}
+				>
 					<Days {subsPlease} {scheduledMedia} />
 				</div>
 			{:else}
-- 
cgit v1.2.3

