misc: Upddate communities page

This commit is contained in:
Xyphyn committed 2023-07-13 19:14:33 -07:00
1 parent 5f4c32fe2c
commit 29b96ee04e
2 files changed
+5 -17

No files matched your search

-10
View File
@@ -103,16 +103,6 @@
loading="lazy"
/>
</div>
{:else if postRes.post.embed_video_url}
<div class="self-start" class:blur-3xl={postRes.post.nsfw}>
<!-- svelte-ignore a11y-media-has-caption -->
{#if postRes.post.embed_video_url}
<embed
class="rounded-md max-h-[32rem] w-full max-w-full"
src={youtubeToPiped(postRes.post.embed_video_url)}
/>
{/if}
</div>
{:else if postRes.post.thumbnail_url}
<div class="self-start" class:blur-3xl={postRes.post.nsfw}>
<img
+5 -7
View File
@@ -60,7 +60,7 @@
<span
class="break-words max-w-full w-max text-base font-bold text-sky-400 hover:underline"
>
<CommunityLink community={community.community} />
<CommunityLink avatar community={community.community} />
</span>
<div class="w-24">
<Subscribe {community} let:subscribe let:subscribing>
@@ -80,7 +80,7 @@
}}
color={community.subscribed == 'Subscribed'
? Color.accent
: Color.secondary}
: Color.ghost}
>
{community.subscribed == 'Subscribed'
? 'Subscribed'
@@ -89,11 +89,9 @@
</Subscribe>
</div>
</div>
{#if !community.community.local}
<span class="opacity-80 mb-2">
{new URL(community.community.actor_id).hostname}
</span>
{/if}
<span class="opacity-80 mb-2">
{new URL(community.community.actor_id).hostname}
</span>
<div class="flex flex-row gap-3 items-center">
<div class="flex flex-row gap-1 items-center">
<Icon src={UserGroup} width={16} mini />