fix: Conditional if post url
This commit is contained in:
1 parent
03035bc94b
commit
dc7656c61e
1 file changed
+8
-6
@@ -92,13 +92,15 @@
|
||||
<span class="opacity-50">{postData.creator.name}</span>
|
||||
</span>
|
||||
<h1 class="font-bold text-lg">{post.name}</h1>
|
||||
<a
|
||||
href={post.url}
|
||||
class="text-sky-400 max-w-[48ch] overflow-hidden
|
||||
{#if post.url}
|
||||
<a
|
||||
href={post.url}
|
||||
class="text-sky-400 max-w-[48ch] overflow-hidden
|
||||
whitespace-nowrap text-ellipsis text-xs hover:underline"
|
||||
>
|
||||
{post.url}
|
||||
</a>
|
||||
>
|
||||
{post.url}
|
||||
</a>
|
||||
{/if}
|
||||
{#if post.thumbnail_url}
|
||||
<img
|
||||
src={post.thumbnail_url}
|
||||
|
||||
Reference in new issue
Block a user