From 2363ca7910d30187f13519db761481cdbb320171 Mon Sep 17 00:00:00 2001
From: JovannMC
Date: Thu, 5 Jun 2025 13:42:04 +0300
Subject: [PATCH] fix: brief card overflow when loading page
---
src/routes/+page.svelte | 51 +++++++++++++++++++++--------------------
1 file changed, 26 insertions(+), 25 deletions(-)
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 03ba379..f9a72dd 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -134,32 +134,33 @@
{s.ready ? "ready" : "not ready"}
- Supported 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
- ? ", "
- : ""}
+
+ Supported formats:
+ {#each s.formats.split(", ") as format, index}
+ {@const isPartial = format.endsWith("*")}
+ {@const formatName = isPartial
+ ? format.slice(0, -1)
+ : format}
+
+ {#if isPartial}
+
+ {formatName}*
+
+ {:else}
+ {formatName}
+ {/if}
+ {#if index < s.formats.split(", ").length - 1}
+ ,
+ {/if}
- {/if}
- {/each}
+ {/each}
+