From 6f81f93b3be9f12e9ab1788bccf4e997a49833a5 Mon Sep 17 00:00:00 2001 From: Maya Date: Sun, 27 Jul 2025 00:05:22 +0300 Subject: [PATCH] fix: long file extensions in format dropdown --- src/lib/components/functional/FormatDropdown.svelte | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/lib/components/functional/FormatDropdown.svelte b/src/lib/components/functional/FormatDropdown.svelte index 38bad18..71b9308 100644 --- a/src/lib/components/functional/FormatDropdown.svelte +++ b/src/lib/components/functional/FormatDropdown.svelte @@ -65,7 +65,10 @@ const shouldInclude = (format: string, category: string): boolean => { // if converting from audio to video, dont show gifs - if (categories["audio"]?.formats.includes(from ?? "") && format === ".gif") { + if ( + categories["audio"]?.formats.includes(from ?? "") && + format === ".gif" + ) { return false; } @@ -256,7 +259,9 @@ {disabled} > -
+
{#key selected}

{selected}

@@ -275,7 +280,7 @@ {#if currentCategory} {#each categories[currentCategory].formats as option}