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> </Button>
{/snippet} {/snippet}
{#if (profile.current?.user && amMod(profile.current.user, item.community)) || (profile.current?.user && isAdmin(profile.current.user))} {#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)} {#if !item.community.local && !amMod(profile.current.user, item.community)}
{$t('moderation.labelInstanceOnly')} {$t('moderation.labelInstanceOnly')}
{:else} {:else}
@@ -105,7 +105,7 @@
{/if} {/if}
{#if profile.current?.user && isAdmin(profile.current.user)} {#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)}> <MenuButton color="danger-subtle" onclick={() => remove(item, true)}>
{#snippet prefix()} {#snippet prefix()}
<Icon src={Fire} size="16" mini /> <Icon src={Fire} size="16" mini />
@@ -153,7 +153,7 @@
</MenuButton> </MenuButton>
{/if} {/if}
{#if profile.current?.user && isAdmin(profile.current.user)} {#if profile.current?.user && isAdmin(profile.current.user)}
<MenuDivider>{$t('admin.label')}</MenuDivider> <MenuDivider showLabel>{$t('admin.label')}</MenuDivider>
<MenuButton <MenuButton
color="success-subtle" color="success-subtle"
onclick={() => onclick={() =>
@@ -190,7 +190,11 @@
{/snippet} {/snippet}
{#snippet children(open)} {#snippet children(open)}
{#if 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 /> <PostActionsMenu {post} {onhide} bind:editing />
{/await} {/await}
{/if} {/if}
+1 -2
View File
@@ -129,7 +129,6 @@
{/if} {/if}
</NavButton> </NavButton>
{/snippet} {/snippet}
<MenuDivider>{$t('nav.notifications')}</MenuDivider>
<MenuButton href="/inbox" icon={Inbox}> <MenuButton href="/inbox" icon={Inbox}>
{$t('profile.inbox')} {$t('profile.inbox')}
{#snippet suffix()} {#snippet suffix()}
@@ -225,7 +224,7 @@
{#snippet children(open)} {#snippet children(open)}
{#if open} {#if open}
{#await import('./Profile.svelte')} {#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} /> <Spinner width={20} />
</div> </div>
{:then { default: Profile }} {:then { default: Profile }}
@@ -4,7 +4,7 @@
import RelativeDate from '$lib/components/util/RelativeDate.svelte' import RelativeDate from '$lib/components/util/RelativeDate.svelte'
import { t } from '$lib/i18n/translations' import { t } from '$lib/i18n/translations'
import type { PrivateMessageView } from 'lemmy-js-client' import type { PrivateMessageView } from 'lemmy-js-client'
import { Button, Menu, MenuButton, MenuDivider } from 'mono-svelte' import { Button, Menu, MenuButton } from 'mono-svelte'
import { EllipsisVertical, Flag, Icon, Trash } from 'svelte-hero-icons' import { EllipsisVertical, Flag, Icon, Trash } from 'svelte-hero-icons'
interface Props { interface Props {
@@ -62,7 +62,6 @@
<Icon src={EllipsisVertical} size="16" micro /> <Icon src={EllipsisVertical} size="16" micro />
</Button> </Button>
{/snippet} {/snippet}
<MenuDivider>{$t('post.actions.more.actions')}</MenuDivider>
{#if primary} {#if primary}
<MenuButton color="danger-subtle" onclick={() => ondelete?.(true)}> <MenuButton color="danger-subtle" onclick={() => ondelete?.(true)}>
{#snippet prefix()} {#snippet prefix()}