Fix responsive for /contacts
This commit is contained in:
parent
aad87df165
commit
19b71a87c0
1 changed files with 19 additions and 17 deletions
|
|
@ -88,24 +88,24 @@
|
||||||
<ul class="mt-2 space-y-3">
|
<ul class="mt-2 space-y-3">
|
||||||
{#each contacts as c (c.pubkey)}
|
{#each contacts as c (c.pubkey)}
|
||||||
<li
|
<li
|
||||||
class="flex gap-4 rounded-lg border border-neutral-100 dark:border-neutral-800 p-4 shadow-sm"
|
class="rounded-lg border border-neutral-100 dark:border-neutral-800 p-4 shadow-sm"
|
||||||
>
|
>
|
||||||
{#if c.entry?.picture}
|
<div class="flex gap-4">
|
||||||
<img
|
{#if c.entry?.picture}
|
||||||
src={c.entry.picture}
|
<img
|
||||||
alt=""
|
src={c.entry.picture}
|
||||||
class="h-14 w-14 shrink-0 rounded-full object-cover"
|
alt=""
|
||||||
/>
|
class="h-14 w-14 shrink-0 rounded-full object-cover"
|
||||||
{:else}
|
/>
|
||||||
<span
|
{:else}
|
||||||
class="flex h-14 w-14 shrink-0 items-center justify-center rounded-full bg-neutral-200 dark:bg-neutral-700 text-lg font-semibold text-neutral-500 dark:text-neutral-400"
|
<span
|
||||||
>
|
class="flex h-14 w-14 shrink-0 items-center justify-center rounded-full bg-neutral-200 dark:bg-neutral-700 text-lg font-semibold text-neutral-500 dark:text-neutral-400"
|
||||||
{displayName(c)[0].toUpperCase()}
|
>
|
||||||
</span>
|
{displayName(c)[0].toUpperCase()}
|
||||||
{/if}
|
</span>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div class="min-w-0 flex-1">
|
<div class="flex min-w-0 flex-1 items-start justify-between gap-3">
|
||||||
<div class="flex items-start justify-between gap-3">
|
|
||||||
<div class="min-w-0">
|
<div class="min-w-0">
|
||||||
<p class="truncate text-2xl font-medium text-neutral-900 dark:text-neutral-100">
|
<p class="truncate text-2xl font-medium text-neutral-900 dark:text-neutral-100">
|
||||||
{displayName(c)}
|
{displayName(c)}
|
||||||
|
|
@ -125,9 +125,11 @@
|
||||||
View profile ↗
|
View profile ↗
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mt-3 md:pl-18">
|
||||||
{#if c.entry?.about}
|
{#if c.entry?.about}
|
||||||
<p class="mt-2 whitespace-pre-line text-neutral-600 dark:text-neutral-400">
|
<p class="whitespace-pre-line text-neutral-600 dark:text-neutral-400">
|
||||||
{c.entry.about}
|
{c.entry.about}
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue