diff --git a/bun.lockb b/bun.lockb index ea95e702..fca75521 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/lib/components/lemmy/post/PostActions.svelte b/src/lib/components/lemmy/post/PostActions.svelte index c281c934..ad7f441c 100644 --- a/src/lib/components/lemmy/post/PostActions.svelte +++ b/src/lib/components/lemmy/post/PostActions.svelte @@ -8,19 +8,15 @@ BookmarkSlash, BugAnt, ChatBubbleOvalLeft, - ChatBubbleOvalLeftEllipsis, CheckBadge, EllipsisHorizontal, Eye, EyeSlash, Flag, - GlobeAlt, - Home, Icon, Language, Newspaper, PencilSquare, - Scale, ServerStack, Share, Trash, @@ -36,12 +32,7 @@ } from '$lib/components/lemmy/moderation/moderation.js' import ModerationMenu from '$lib/components/lemmy/moderation/ModerationMenu.svelte' import { profile } from '$lib/auth.js' - import { - contentView, - deleteItem, - markAsRead, - save, - } from '$lib/lemmy/contentview.js' + import { deleteItem, markAsRead, save } from '$lib/lemmy/contentview.js' import { setSessionStorage } from '$lib/session.js' import { goto } from '$app/navigation' import { userSettings, type View } from '$lib/settings.js' @@ -55,11 +46,9 @@ toast, } from 'mono-svelte' import { fediseer, type Data } from '$lib/fediseer/fediseer' - import Fediseer from '$lib/fediseer/Fediseer.svelte' import { t } from '$lib/translations' import { text } from '$lib/components/translate/translation' - import Translation from '$lib/components/translate/Translation.svelte' - import { hidePost, postLink, type MediaType } from './helpers' + import { hidePost, type MediaType } from './helpers' import { feature } from '$lib/version' import Switch from '$lib/components/input/Switch.svelte' import { instanceToURL } from '$lib/util' @@ -92,7 +81,9 @@ {#if fediseerData} - + {#await import('$lib/fediseer/Fediseer.svelte') then { default: Fediseer }} + + {/await} {/if} {#if editing} diff --git a/src/lib/components/markdown/MarkdownEditor.svelte b/src/lib/components/markdown/MarkdownEditor.svelte index 7846f094..02476f80 100644 --- a/src/lib/components/markdown/MarkdownEditor.svelte +++ b/src/lib/components/markdown/MarkdownEditor.svelte @@ -173,7 +173,7 @@ class="flex flex-col border border-slate-200 border-b-slate-300 dark:border-t-zinc-700 dark:border-zinc-800 focus-within:border-primary-900 focus-within:dark:border-primary-100 focus-within:ring ring-slate-300 dark:ring-zinc-700 rounded-xl -overflow-hidden transition-colors" +overflow-hidden transition-colors {$$props.class}" class:mt-1={label} > {#if previewing} diff --git a/src/lib/components/translate/Translation.svelte b/src/lib/components/translate/Translation.svelte index cad6ae7b..37981e34 100644 --- a/src/lib/components/translate/Translation.svelte +++ b/src/lib/components/translate/Translation.svelte @@ -34,7 +34,6 @@ requestURL.searchParams.set('q', text) requestURL.searchParams.set('source', from) requestURL.searchParams.set('target', to) - requestURL.searchParams.set('alternatives', '') result = fetch(requestURL.toString(), { method: 'POST', @@ -89,16 +88,14 @@ {:then result} - {#if !error} - - {/if} + {:catch err} {/await} diff --git a/src/lib/components/ui/navbar/Profile.svelte b/src/lib/components/ui/navbar/Profile.svelte index c4c8bb02..372e91e9 100644 --- a/src/lib/components/ui/navbar/Profile.svelte +++ b/src/lib/components/ui/navbar/Profile.svelte @@ -143,9 +143,18 @@
{}}>