fix: entity header overflow

This commit is contained in:
Xylight committed 2024-07-26 14:36:16 -07:00
1 parent 6c20b9400f
commit c0c8653e60
2 files changed
+15 -15

No files matched your search

+9 -9
View File
@@ -25,7 +25,7 @@
/> />
</div> </div>
{/if} {/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"> <div class="space-y-3 flex-1">
<Avatar <Avatar
width={64} width={64}
@@ -48,21 +48,21 @@
<PostBody class="text-sm" view="list" body={bio} clickThrough /> <PostBody class="text-sm" view="list" body={bio} clickThrough />
{/if} {/if}
</div> </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> </div>
{#if $$slots.actions} {#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" /> <slot name="actions" />
</div> </div>
{/if} {/if}
</div> </div>
<div class="space-y-3 p-4 pt-0"> <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 /> <slot />
</div> </div>
</Material> </Material>
+6 -6
View File
@@ -44,7 +44,7 @@
if (browser) if (browser)
setSessionStorage( setSessionStorage(
'lastSeenCommunity', 'lastSeenCommunity',
data.community.community_view.community, data.community.community_view.community
) )
resumables.add({ resumables.add({
@@ -99,10 +99,10 @@
<button <button
on:click={() => { on:click={() => {
navigator?.clipboard?.writeText?.( navigator?.clipboard?.writeText?.(
fullCommunityName( `!${fullCommunityName(
community.community.name, community.community.name,
community.community.actor_id, community.community.actor_id
), )}`
) )
toast({ content: $t('toast.copied') }) toast({ content: $t('toast.copied') })
}} }}
@@ -111,7 +111,7 @@
> >
!{fullCommunityName( !{fullCommunityName(
community.community.name, community.community.name,
community.community.actor_id, community.community.actor_id
)} )}
</button> </button>
<div class="flex items-center gap-2" slot="actions"> <div class="flex items-center gap-2" slot="actions">
@@ -156,7 +156,7 @@
color="secondary" color="secondary"
href="/c/{fullCommunityName( href="/c/{fullCommunityName(
community.community.name, community.community.name,
community.community.actor_id, community.community.actor_id
)}/settings" )}/settings"
> >
<Icon src={Cog6Tooth} size="16" mini /> <Icon src={Cog6Tooth} size="16" mini />