upgrade: mono-svelte to 1.5.5

This commit is contained in:
Xylight committed 2024-03-15 14:34:51 -07:00
1 parent 8129fded76
commit a505bd5b64
5 files changed
+25 -22

No files matched your search

@@ -166,7 +166,7 @@
link
href="/u/{post.creator.name}@{new URL(post.creator.actor_id).hostname}"
>
<Icon src={UserCircle} width={16} mini />
<Icon src={UserCircle} width={16} mini slot="prefix" />
<span>{post.creator.name}</span>
</MenuButton>
<MenuButton
@@ -174,7 +174,7 @@
href="/c/{post.community.name}@{new URL(post.community.actor_id)
.hostname}"
>
<Icon src={Newspaper} width={16} mini />
<Icon src={Newspaper} width={16} mini slot="prefix" />
<span>{post.community.title}</span>
</MenuButton>
<MenuButton
@@ -194,18 +194,20 @@
return
}}
>
{#if fediseerLoading}
<Spinner width={14} />
{:else}
<Icon src={ServerStack} width={16} mini />
{/if}
<svelte:fragment slot="prefix">
{#if fediseerLoading}
<Spinner width={14} />
{:else}
<Icon src={ServerStack} width={16} mini />
{/if}
</svelte:fragment>
<span>{new URL(post.community.actor_id).hostname}</span>
</MenuButton>
<hr class="w-[90%] mx-auto opacity-100 dark:opacity-10 my-2" />
<MenuDivider>Actions</MenuDivider>
{#if $profile?.user && $profile?.jwt && $profile.user.local_user_view.person.id == post.creator.id}
<MenuButton on:click={() => (editing = true)}>
<Icon src={PencilSquare} width={16} mini />
<Icon src={PencilSquare} width={16} mini slot="prefix" />
Edit
</MenuButton>
{/if}
@@ -227,7 +229,7 @@
}) ?? navigator.clipboard.writeText(post.post.ap_id)
}}
>
<Icon src={Share} width={16} mini />
<Icon src={Share} width={16} mini slot="prefix" />
Share
</MenuButton>
{#if $profile?.jwt}
@@ -254,7 +256,7 @@
goto('/create/post?crosspost=true')
}}
>
<Icon src={ArrowTopRightOnSquare} width={16} mini />
<Icon src={ArrowTopRightOnSquare} width={16} mini slot="prefix" />
Crosspost
</MenuButton>
{#if $profile.user && post.creator.id == $profile.user.local_user_view.person.id}
@@ -269,13 +271,13 @@
}}
color="danger-subtle"
>
<Icon src={Trash} width={16} mini />
<Icon src={Trash} width={16} mini slot="prefix" />
{post.post.deleted ? 'Restore' : 'Delete'}
</MenuButton>
{/if}
{#if $profile.user?.local_user_view.person.id != post.creator.id}
<MenuButton on:click={() => report(post)} color="danger-subtle">
<Icon src={Flag} width={16} mini />
<Icon src={Flag} width={16} mini slot="prefix" />
Report
</MenuButton>
{/if}
+2 -2
View File
@@ -118,7 +118,7 @@
href="/create/post"
disabled={$profile?.jwt == undefined}
>
<Icon src={PencilSquare} mini width={16} />
<Icon src={PencilSquare} mini width={16} slot="prefix" />
Post
</MenuButton>
<MenuButton
@@ -129,7 +129,7 @@
($site?.site_view.local_site.community_creation_admin_only &&
!isAdmin($profile.user))}
>
<Icon src={Newspaper} mini width={16} />
<Icon src={Newspaper} mini width={16} slot="prefix" />
Community
</MenuButton>
{#if !$profile?.jwt}
+8 -7
View File
@@ -73,10 +73,10 @@
{/if}
{#if $profile?.user}
<MenuButton link href="/profile">
<Icon src={UserCircle} mini width={16} /> Profile
<Icon src={UserCircle} mini width={16} slot="prefix" /> Profile
</MenuButton>
<MenuButton link href="/inbox">
<Icon src={Inbox} mini width={16} />
<Icon src={Inbox} mini width={16} slot="prefix" />
Inbox
{#if $profile.user.notifications.inbox > 0}
<Badge color="red-subtle" class="text-xs ml-auto font-bold !py-0.5">
@@ -85,17 +85,17 @@
{/if}
</MenuButton>
<MenuButton link href="/saved">
<Icon src={Bookmark} mini width={16} /> Saved
<Icon src={Bookmark} mini width={16} slot="prefix" /> Saved
</MenuButton>
{/if}
<MenuButton link href="/accounts">
<Icon src={UserGroup} mini width={16} />
<Icon src={UserGroup} mini width={16} slot="prefix" />
Accounts
</MenuButton>
<hr class="dark:opacity-10 w-[90%] my-2 mx-auto" />
<MenuDivider>App</MenuDivider>
<MenuButton link href="/settings">
<Icon src={Cog6Tooth} mini width={16} />
<Icon src={Cog6Tooth} mini width={16} slot="prefix" />
Settings
</MenuButton>
<MenuButton
@@ -114,6 +114,7 @@
: Moon}
mini
size="16"
slot="prefix"
/>
<span>Color Scheme</span>
<!-- svelte-ignore a11y-click-events-have-key-events -->
@@ -128,7 +129,7 @@
</MenuButton>
{#if $userSettings.debugInfo}
<MenuButton link href="/util">
<Icon src={BugAnt} mini width={16} />
<Icon src={BugAnt} mini width={16} slot="prefix" />
Debug
</MenuButton>
{/if}
@@ -144,7 +145,7 @@
toast({ content: 'Copied version to clipboard.' })
}}
>
<Badge>{__VERSION__}</Badge>
<Badge color="blue-subtle">{__VERSION__}</Badge>
</button>
</div>
<Button