fix: Conditional if post url

This commit is contained in:
Xyphyn committed 2023-07-01 18:33:22 -07:00
1 parent 03035bc94b
commit dc7656c61e
1 file changed
+8 -6
+8 -6
View File
@@ -92,13 +92,15 @@
<span class="opacity-50">{postData.creator.name}</span> <span class="opacity-50">{postData.creator.name}</span>
</span> </span>
<h1 class="font-bold text-lg">{post.name}</h1> <h1 class="font-bold text-lg">{post.name}</h1>
<a {#if post.url}
href={post.url} <a
class="text-sky-400 max-w-[48ch] overflow-hidden href={post.url}
class="text-sky-400 max-w-[48ch] overflow-hidden
whitespace-nowrap text-ellipsis text-xs hover:underline" whitespace-nowrap text-ellipsis text-xs hover:underline"
> >
{post.url} {post.url}
</a> </a>
{/if}
{#if post.thumbnail_url} {#if post.thumbnail_url}
<img <img
src={post.thumbnail_url} src={post.thumbnail_url}