+
{$t('nav.commands.downloading')}
- {:then {default: Commands }}
+ {:then { default: Commands }}
{/await}
diff --git a/src/lib/components/ui/navbar/commands/actions.svelte.ts b/src/lib/components/ui/navbar/commands/actions.svelte.ts
index 3b9a3dce..c0090f95 100644
--- a/src/lib/components/ui/navbar/commands/actions.svelte.ts
+++ b/src/lib/components/ui/navbar/commands/actions.svelte.ts
@@ -92,7 +92,7 @@ export function getGroups(
name: t.get('nav.communities'),
icon: GlobeAlt,
},
- ...(amModOfAny(profile.data.user)
+ ...(amModOfAny(profile.user)
? [
{
href: '/moderation',
@@ -101,7 +101,7 @@ export function getGroups(
},
]
: []),
- ...(profile.data.user && isAdmin(profile.data.user)
+ ...(profile.user && isAdmin(profile.user)
? [
{
href: '/admin',
@@ -236,23 +236,23 @@ export function getGroups(
],
},
{
- name: t.get('profile.data.profile'),
- actions: profile.data.jwt
+ name: t.get('profile.profile'),
+ actions: profile.jwt
? [
{
href: '/profile/user',
- name: t.get('profile.data.profile'),
+ name: t.get('profile.profile'),
icon: UserCircle,
},
{
href: '/inbox',
- name: t.get('profile.data.inbox'),
+ name: t.get('profile.inbox'),
icon: Inbox,
shortcut: 'i',
},
{
href: '/saved',
- name: t.get('profile.data.saved'),
+ name: t.get('profile.saved'),
icon: Bookmark,
},
{
@@ -311,11 +311,11 @@ export function getGroups(
icon: p.avatar ?? UserCircle,
detail: p.instance,
handle: async () => {
- if (profile.data.id != p.id) {
+ if (profile.id != p.id) {
await setUserID(p.id)
}
- await goto(get(page).url, {
+ await goto(page.url, {
invalidateAll: true,
})
},
@@ -407,9 +407,9 @@ export function getGroups(
],
},
{
- name: t.get('profile.data.subscribed'),
+ name: t.get('profile.subscribed'),
actions:
- profile.data?.user?.follows.map((f) => ({
+ profile.user?.follows.map((f) => ({
icon: f.community.icon,
name: f.community.title,
href: `/c/${fullCommunityName(
diff --git a/src/lib/mono/modal/Modal.svelte b/src/lib/mono/modal/Modal.svelte
index 8c5931f6..382cac00 100644
--- a/src/lib/mono/modal/Modal.svelte
+++ b/src/lib/mono/modal/Modal.svelte
@@ -6,12 +6,14 @@
import { fade, scale } from 'svelte/transition'
import { focusTrap } from 'svelte-focus-trap'
import Portal from '../popover/Portal.svelte'
+ import type { ClassValue } from 'svelte/elements'
interface Props {
action?: string | undefined
open?: boolean
- title?: string | undefined
+ title?: string | undefined | null
dismissable?: boolean
+ class?: ClassValue
customTitle?: import('svelte').Snippet
children?: import('svelte').Snippet
actions?: import('svelte').Snippet<[any]>
@@ -29,6 +31,7 @@
actions,
ondismissed,
onaction,
+ class: clazz = '',
}: Props = $props()
let el: any = $state()
@@ -65,7 +68,7 @@ bg-white/50 dark:bg-black/50 box-border p-4"
dark:border-zinc-900 dark:border-t-zinc-800 dark:border-b-zinc-900
rounded-2xl max-w-lg box-border mx-auto overscroll-contain shadow-lg overflow-auto
p-5 flex flex-col gap-2 dark:bg-zinc-925
- bg-white relative"
+ bg-white relative {clazz}"
>
{#if dismissable}