fix: broken looking menudividers

This commit is contained in:
James Xylight committed 2025-08-22 17:32:14 -07:00
1 parent 7799ec3e62
commit 90f1b17e7b
5 files changed
+10 -8

No files matched your search

@@ -35,7 +35,7 @@
</Button>
{/snippet}
{#if (profile.current?.user && amMod(profile.current.user, item.community)) || (profile.current?.user && isAdmin(profile.current.user))}
<MenuDivider>
<MenuDivider showLabel>
{#if !item.community.local && !amMod(profile.current.user, item.community)}
{$t('moderation.labelInstanceOnly')}
{:else}
@@ -105,7 +105,7 @@
{/if}
{#if profile.current?.user && isAdmin(profile.current.user)}
<MenuDivider>{$t('admin.label')}</MenuDivider>
<MenuDivider showLabel>{$t('admin.label')}</MenuDivider>
<MenuButton color="danger-subtle" onclick={() => remove(item, true)}>
{#snippet prefix()}
<Icon src={Fire} size="16" mini />
@@ -153,7 +153,7 @@
</MenuButton>
{/if}
{#if profile.current?.user && isAdmin(profile.current.user)}
<MenuDivider>{$t('admin.label')}</MenuDivider>
<MenuDivider showLabel>{$t('admin.label')}</MenuDivider>
<MenuButton
color="success-subtle"
onclick={() =>
@@ -190,7 +190,11 @@
{/snippet}
{#snippet children(open)}
{#if open}
{#await import('./PostActionsMenu.svelte') then { default: PostActionsMenu }}
{#await import ('./PostActionsMenu.svelte')}
<div class="p-8 w-full h-full grid place-items-center">
<Spinner width={20} />
</div>
{:then { default: PostActionsMenu }}
<PostActionsMenu {post} {onhide} bind:editing />
{/await}
{/if}
+1 -2
View File
@@ -129,7 +129,6 @@
{/if}
</NavButton>
{/snippet}
<MenuDivider>{$t('nav.notifications')}</MenuDivider>
<MenuButton href="/inbox" icon={Inbox}>
{$t('profile.inbox')}
{#snippet suffix()}
@@ -225,7 +224,7 @@
{#snippet children(open)}
{#if open}
{#await import('./Profile.svelte')}
<div class="m-8 w-full h-full grid place-items-center">
<div class="p-8 w-full h-full grid place-items-center">
<Spinner width={20} />
</div>
{:then { default: Profile }}