From 4d6f784cfb84ca98c66aa9bb1fa21f52badd25ed Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 3 Nov 2023 21:21:20 -0700
Subject: feat(list): native titles option

---
 src/lib/List/CleanMangaList.svelte | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

(limited to 'src/lib/List/CleanMangaList.svelte')

diff --git a/src/lib/List/CleanMangaList.svelte b/src/lib/List/CleanMangaList.svelte
index 180c12f2..df558a51 100644
--- a/src/lib/List/CleanMangaList.svelte
+++ b/src/lib/List/CleanMangaList.svelte
@@ -33,13 +33,17 @@
 
 		<li>
 			<a href={`https://anilist.co/manga/${manga.id}`} target="_blank">
-				{#if lastUpdatedMedia === manga.id && manga.chapters !== progress}
-					<span style="color: lightcoral">
+				<span
+					style={lastUpdatedMedia === manga.id && manga.chapters !== progress
+						? 'color: lightcoral'
+						: ''}
+				>
+					{#if $settings.displayNativeTitles}
+						{manga.title.native}
+					{:else}
 						{manga.title.english || manga.title.romaji || manga.title.native}
-					</span>
-				{:else}
-					{manga.title.english || manga.title.romaji || manga.title.native}
-				{/if}
+					{/if}
+				</span>
 			</a>
 			{#if $settings.displaySocialButton}
 				[<a href={`https://anilist.co/manga/${manga.id}/social`} target="_blank">S</a>]
-- 
cgit v1.2.3

