Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

fix: effects for download icon, update copy

JovannMC27f3f89ad233
diff --git a/messages/en.json b/messages/en.json
index 7791a86..22271d8 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -208,7 +208,7 @@
"image_file": "Image file",
"convert_file": "Convert this file",
"download_file": "Download this file",
- "converter_initializing": "The converter is being downloaded and initialized. The converters will be cached in your browser for future conversions."
+ "converter_initializing": "The {type} conversion tools are currently being downloaded. This only happens once and shouldn't take too long."
},
"errors": {
"cant_convert": "We can't convert this file.",
diff --git a/src/routes/convert/+page.svelte b/src/routes/convert/+page.svelte
index 3012379..04e0397 100644
--- a/src/routes/convert/+page.svelte
+++ b/src/routes/convert/+page.svelte
@@ -40,6 +40,7 @@
import SettingsModal from "#lib/components/functional/popups/SettingsModal.svelte";
import { ToastManager } from "#lib/util/toast.svelte";
import { vertdSizeLimit } from "#lib/sections/settings/vertdSettings.svelte";
+ import clsx from "clsx";
let processedFileIds = $state(new Set<string>());
@@ -272,18 +273,30 @@
{/if}
</div>
<div
- class="flex-shrink-0 flex items-center justify-center overflow-visible transition-transform duration-300 {isInitializing
- ? 'w-8 opacity-100'
- : 'w-0 opacity-0'}"
+ class={clsx(
+ "flex-shrink-0 flex items-center justify-center overflow-visible transition-transform duration-300",
+ isInitializing ? "w-8 opacity-100" : "w-0 opacity-0",
+ )}
>
{#if isInitializing}
<Tooltip
- text={m["convert.tooltips.converter_initializing"]()}
+ text={m["convert.tooltips.converter_initializing"]({
+ type: isAudio
+ ? m["convert.errors.audio"]()
+ : isVideo
+ ? m["convert.errors.video"]()
+ : isDocument
+ ? m["convert.errors.doc"]()
+ : m["convert.errors.image"](),
+ })}
position="bottom"
>
<DownloadIcon
size="20"
- class="animate-bounce text-muted"
+ class={clsx(
+ "text-muted",
+ $effects && "animate-bounce",
+ )}
/>
</Tooltip>
{/if}