Fix max url length, adds line breaks to display, truncates long urls. Remove old seed command.

This commit is contained in:
Sean Morley
2024-09-17 10:34:31 -04:00
parent 0fd9e04599
commit 78f56a3a5f
5 changed files with 46 additions and 4228 deletions

View File

@@ -281,14 +281,16 @@
class="text-sm text-muted-foreground hover:underline"
target="_blank"
>
{adventure.link}
{adventure.link.length > 45
? `${adventure.link.slice(0, 45)}...`
: adventure.link}
</a>
</div>
{/if}
</div>
{#if adventure.description}
<div class="grid gap-2">
<p class="text-sm text-muted-foreground">
<p class="text-sm text-muted-foreground whitespace-pre-line">
{adventure.description}
</p>
</div>