fix: entity header overflow
This commit is contained in:
1 parent
6c20b9400f
commit
c0c8653e60
2 files changed
+15
-15
No files matched your search
@@ -25,7 +25,7 @@
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="p-4 flex flex-row gap-4">
|
||||
<div class="p-4 flex flex-col sm:flex-row gap-4">
|
||||
<div class="space-y-3 flex-1">
|
||||
<Avatar
|
||||
width={64}
|
||||
@@ -48,21 +48,21 @@
|
||||
<PostBody class="text-sm" view="list" body={bio} clickThrough />
|
||||
{/if}
|
||||
</div>
|
||||
{#if stats.length > 0}
|
||||
<div class="text-sm flex flex-row flex-wrap gap-3">
|
||||
{#each stats as stat}
|
||||
<LabelStat content={stat.value} formatted label={stat.name} />
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{#if $$slots.actions}
|
||||
<div class="space-y-3 flex flex-col" class:pt-12={banner != undefined}>
|
||||
<div class="space-y-3 flex flex-col" class:sm:pt-12={banner != undefined}>
|
||||
<slot name="actions" />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="space-y-3 p-4 pt-0">
|
||||
{#if stats.length > 0}
|
||||
<div class="text-sm flex flex-row flex-wrap gap-3">
|
||||
{#each stats as stat}
|
||||
<LabelStat content={stat.value} formatted label={stat.name} />
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
<slot />
|
||||
</div>
|
||||
</Material>
|
||||
@@ -44,7 +44,7 @@
|
||||
if (browser)
|
||||
setSessionStorage(
|
||||
'lastSeenCommunity',
|
||||
data.community.community_view.community,
|
||||
data.community.community_view.community
|
||||
)
|
||||
|
||||
resumables.add({
|
||||
@@ -99,10 +99,10 @@
|
||||
<button
|
||||
on:click={() => {
|
||||
navigator?.clipboard?.writeText?.(
|
||||
fullCommunityName(
|
||||
`!${fullCommunityName(
|
||||
community.community.name,
|
||||
community.community.actor_id,
|
||||
),
|
||||
community.community.actor_id
|
||||
)}`
|
||||
)
|
||||
toast({ content: $t('toast.copied') })
|
||||
}}
|
||||
@@ -111,7 +111,7 @@
|
||||
>
|
||||
!{fullCommunityName(
|
||||
community.community.name,
|
||||
community.community.actor_id,
|
||||
community.community.actor_id
|
||||
)}
|
||||
</button>
|
||||
<div class="flex items-center gap-2" slot="actions">
|
||||
@@ -156,7 +156,7 @@
|
||||
color="secondary"
|
||||
href="/c/{fullCommunityName(
|
||||
community.community.name,
|
||||
community.community.actor_id,
|
||||
community.community.actor_id
|
||||
)}/settings"
|
||||
>
|
||||
<Icon src={Cog6Tooth} size="16" mini />
|
||||
|
||||
Reference in new issue
Block a user