Merge pull request #175 from pieterdd/make-community-card-clickable
Make community cards clickable
This commit is contained in:
2 files changed
+18
-3
No files matched your search
@@ -30,7 +30,6 @@
|
|||||||
EllipsisHorizontal,
|
EllipsisHorizontal,
|
||||||
Fire,
|
Fire,
|
||||||
Icon,
|
Icon,
|
||||||
Minus,
|
|
||||||
Newspaper,
|
Newspaper,
|
||||||
NoSymbol,
|
NoSymbol,
|
||||||
PencilSquare,
|
PencilSquare,
|
||||||
@@ -146,14 +145,30 @@
|
|||||||
<StickyCard class="min-w-full {$$props.class}">
|
<StickyCard class="min-w-full {$$props.class}">
|
||||||
<div class="flex flex-row gap-3 items-center">
|
<div class="flex flex-row gap-3 items-center">
|
||||||
<div class="flex-shrink-0">
|
<div class="flex-shrink-0">
|
||||||
|
<a
|
||||||
|
href="/c/{fullCommunityName(
|
||||||
|
community_view.community.name,
|
||||||
|
community_view.community.actor_id
|
||||||
|
)}"
|
||||||
|
>
|
||||||
<Avatar
|
<Avatar
|
||||||
width={42}
|
width={42}
|
||||||
url={community_view.community.icon}
|
url={community_view.community.icon}
|
||||||
alt={community_view.community.name}
|
alt={community_view.community.name}
|
||||||
/>
|
/>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-0">
|
<div class="flex flex-col gap-0">
|
||||||
<h1 class="font-bold text-xl">{community_view.community.title}</h1>
|
<h1 class="font-bold text-xl">
|
||||||
|
<a
|
||||||
|
href="/c/{fullCommunityName(
|
||||||
|
community_view.community.name,
|
||||||
|
community_view.community.actor_id
|
||||||
|
)}"
|
||||||
|
>
|
||||||
|
{community_view.community.title}
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
<span
|
<span
|
||||||
class="dark:text-zinc-400 text-slate-600 text-sm break-words max-w-full"
|
class="dark:text-zinc-400 text-slate-600 text-sm break-words max-w-full"
|
||||||
style="word-break: break-all;"
|
style="word-break: break-all;"
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
{#if LINKED_INSTANCE_URL === undefined}
|
{#if LINKED_INSTANCE_URL === undefined}
|
||||||
<SidebarButton href="/accounts" title="Change Instance">
|
<SidebarButton href="/accounts" title="Change Instance">
|
||||||
<Icon mini src={ServerStack} size="20" />
|
<Icon mini src={ServerStack} size="20" />
|
||||||
<span slot="label">Change instance</span>
|
<span slot="label">Change Instance</span>
|
||||||
</SidebarButton>
|
</SidebarButton>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in new issue
Block a user