fix: further fix case sensitivity im not opening another merge request for this

This commit is contained in:
not-nullptr 2024-11-15 12:20:04 +00:00
parent ca6a78eaa1
commit 5bf7ed5f4f
1 changed files with 5 additions and 3 deletions

View File

@ -280,7 +280,9 @@
{#each reversedFiles as file, i (file.id)} {#each reversedFiles as file, i (file.id)}
{@const converter = (() => { {@const converter = (() => {
return converters.find((c) => return converters.find((c) =>
c.supportedFormats.includes(file.from), c.supportedFormats.includes(
file.from.toLowerCase(),
),
); );
})()} })()}
<div <div
@ -395,7 +397,7 @@
<div <div
class="flex items-center justify-center gap-3 w-full pb-4" class="flex items-center justify-center gap-3 w-full pb-4"
> >
{#if converter && converter.supportedFormats.includes(file.from)} {#if converter && converter.supportedFormats.includes(file.from.toLowerCase())}
<span>from</span> <span>from</span>
<span <span
class="py-2 px-3 font-display bg-foreground text-background rounded-xl" class="py-2 px-3 font-display bg-foreground text-background rounded-xl"
@ -452,7 +454,7 @@
</div> </div>
</div> </div>
</div> </div>
{#if converter && converter.supportedFormats.includes(file.from)} {#if converter && converter.supportedFormats.includes(file.from.toLowerCase())}
<!-- god knows why, but setting opacity > 0.98 causes a z-ordering issue in firefox ??? --> <!-- god knows why, but setting opacity > 0.98 causes a z-ordering issue in firefox ??? -->
<div <div
class="absolute top-[0px] -z-50 left-0 w-full h-full opacity-[0.98] rounded-xl overflow-hidden" class="absolute top-[0px] -z-50 left-0 w-full h-full opacity-[0.98] rounded-xl overflow-hidden"