design: improve top community results
This commit is contained in:
1 file changed
+6
-7
@@ -54,7 +54,7 @@
|
|||||||
<div class={clazz}>
|
<div class={clazz}>
|
||||||
<div
|
<div
|
||||||
class={[
|
class={[
|
||||||
view == 'cozy' ? 'flex-col gap-2 items-center' : 'flex-row',
|
view == 'cozy' ? 'flex-col gap-2' : 'flex-row',
|
||||||
'flex max-w-full w-full',
|
'flex max-w-full w-full',
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
community.community.name,
|
community.community.name,
|
||||||
community.community.actor_id,
|
community.community.actor_id,
|
||||||
)}"
|
)}"
|
||||||
class="flex-1 w-full overflow-hidden"
|
class="flex-1 w-full overflow-hidden group"
|
||||||
data-sveltekit-preload-data="tap"
|
data-sveltekit-preload-data="tap"
|
||||||
>
|
>
|
||||||
<div class="flex flex-row gap-2 items-center">
|
<div class="flex flex-row gap-2 items-center">
|
||||||
@@ -88,7 +88,9 @@
|
|||||||
<div
|
<div
|
||||||
class="font-medium text-base overflow-hidden text-ellipsis leading-5"
|
class="font-medium text-base overflow-hidden text-ellipsis leading-5"
|
||||||
>
|
>
|
||||||
<span>{community.community.title}</span>
|
<h3 class="group-hover:underline text-left">
|
||||||
|
{community.community.title}
|
||||||
|
</h3>
|
||||||
{#if community.community.deleted}
|
{#if community.community.deleted}
|
||||||
<Icon
|
<Icon
|
||||||
src={Trash}
|
src={Trash}
|
||||||
@@ -126,10 +128,7 @@
|
|||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="text-sm text-slate-500 dark:text-zinc-500 flex gap-0.5">
|
||||||
class="text-sm text-slate-500 dark:text-zinc-500 flex gap-0.5"
|
|
||||||
class:justify-center={view == 'cozy'}
|
|
||||||
>
|
|
||||||
<span class="overflow-hidden text-ellipsis">
|
<span class="overflow-hidden text-ellipsis">
|
||||||
{new URL(community.community.actor_id).hostname}
|
{new URL(community.community.actor_id).hostname}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in new issue
Block a user