diff --git a/src/lib/components/community/CommunityLink.svelte b/src/lib/components/community/CommunityLink.svelte index e3d97089..d69ba476 100644 --- a/src/lib/components/community/CommunityLink.svelte +++ b/src/lib/components/community/CommunityLink.svelte @@ -1,4 +1,5 @@ -
+
diff --git a/src/lib/components/markdown/MarkdownHeader.svelte b/src/lib/components/markdown/MarkdownHeader.svelte index d95002fd..967e3411 100644 --- a/src/lib/components/markdown/MarkdownHeader.svelte +++ b/src/lib/components/markdown/MarkdownHeader.svelte @@ -3,17 +3,17 @@ {#if depth == 1} -

+

{:else if depth == 2} -

+

{:else if depth == 3} -

+

{:else if depth == 4} -

+

{:else if depth == 5} -
+
{:else if depth == 6} -
+
{:else} {/if} diff --git a/src/lib/components/markdown/MarkdownHr.svelte b/src/lib/components/markdown/MarkdownHr.svelte index 3e322d7f..ee8e6bc3 100644 --- a/src/lib/components/markdown/MarkdownHr.svelte +++ b/src/lib/components/markdown/MarkdownHr.svelte @@ -1 +1 @@ -
+
diff --git a/src/lib/components/markdown/MarkdownList.svelte b/src/lib/components/markdown/MarkdownList.svelte new file mode 100644 index 00000000..449356ae --- /dev/null +++ b/src/lib/components/markdown/MarkdownList.svelte @@ -0,0 +1,10 @@ + + +{#if ordered} +
+{:else} + +{/if} diff --git a/src/lib/components/ui/Avatar.svelte b/src/lib/components/ui/Avatar.svelte index 1ac56dc7..ff6eb1d9 100644 --- a/src/lib/components/ui/Avatar.svelte +++ b/src/lib/components/ui/Avatar.svelte @@ -6,7 +6,8 @@ + import Avatar from '$lib/components/ui/Avatar.svelte' import type { Person } from 'lemmy-js-client' export let user: Person @@ -16,14 +17,11 @@ href={linkFromCommunity(user)} > {#if avatar} - {/if} {user.name} diff --git a/src/lib/lemmy.ts b/src/lib/lemmy.ts index 723b335f..9c250f5b 100644 --- a/src/lib/lemmy.ts +++ b/src/lib/lemmy.ts @@ -6,7 +6,7 @@ import { import { get, writable } from 'svelte/store' import { PUBLIC_PROXY_URL } from '$env/static/public' -export const DEFAULT_INSTANCE_URL = 'lemm.ee' +export const DEFAULT_INSTANCE_URL = 'lemmy.world' export let instance_url = writable(DEFAULT_INSTANCE_URL) export function buildBaseUrl(instance?: string) { @@ -25,6 +25,8 @@ export function getClient(instance?: string): LemmyHttp { return new LemmyHttp(`${PUBLIC_PROXY_URL}/cors/${instance}`) } +export const getInstance = () => get(authData)?.instance ?? DEFAULT_INSTANCE_URL + export interface AuthData { token: string username: string