From 92b1ac29b3967e41e2317ee64363b8fd76f183a6 Mon Sep 17 00:00:00 2001 From: JovannMC Date: Wed, 28 May 2025 17:26:28 +0300 Subject: [PATCH] feat: tooltip for partial support info --- src/routes/+page.svelte | 52 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index b06befa..6f3a69f 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,12 +1,11 @@
@@ -62,9 +78,9 @@

- All image, audio, and document processing is done on your device. - Videos are converted on our lightning-fast servers. No file - size limit, no ads, and completely open source. + All image, audio, and document processing is done on your + device. Videos are converted on our lightning-fast servers. + No file size limit, no ads, and completely open source.

@@ -119,7 +135,31 @@

Supported formats: - {s.formats} + {#each s.formats.split(", ") as format, index} + {@const isPartial = format.endsWith("*")} + {@const formatName = isPartial + ? format.slice(0, -1) + : format} + {#if isPartial} + + + {formatName}*{index < + s.formats.split(", ").length - 1 + ? ", " + : ""} + + + {:else} + + {formatName}{index < + s.formats.split(", ").length - 1 + ? ", " + : ""} + + {/if} + {/each}