diff --git a/src/lib/components/functional/ConversionPanel.svelte b/src/lib/components/functional/ConversionPanel.svelte index 7cbce3b..a97c741 100644 --- a/src/lib/components/functional/ConversionPanel.svelte +++ b/src/lib/components/functional/ConversionPanel.svelte @@ -11,6 +11,8 @@ const length = $derived(files.files.length); const progress = $derived(files.files.filter((f) => f.result).length); + const manyFiles = $derived(files.files.length > 50); + const compactActions = $derived(manyFiles && !$isMobile); @@ -24,21 +26,29 @@ onclick={() => files.convertAll()} class="btn {$effects ? '' - : '!scale-100'} highlight flex gap-3 max-md:w-full md:max-w-[15.5rem]" + : '!scale-100'} highlight flex gap-3 max-md:w-full {compactActions + ? 'p-4' + : 'md:max-w-[15.5rem]'}" disabled={!files.allReady} > -

{m["convert.panel.convert_all"]()}

+ {#if !compactActions} +

{m["convert.panel.convert_all"]()}

+ {/if} {#if $isMobile}