misc: Switch to thumbnails for avatars

This commit is contained in:
Xyphyn committed 2023-07-07 12:33:11 -07:00
1 parent cf372442d8
commit ce19dd3a17
9 files changed
+45 -29

No files matched your search

+3 -1
View File
@@ -4,11 +4,12 @@
import MarkdownLink from '$lib/components/markdown/MarkdownLink.svelte'
import MarkdownQuote from '$lib/components/markdown/MarkdownQuote.svelte'
import SvelteMarkdown from 'svelte-markdown'
import MarkdownList from '$lib/components/markdown/MarkdownList.svelte'
export let source: string | undefined
</script>
<div class="break-words">
<div class="break-words flex flex-col gap-1">
<SvelteMarkdown
{source}
renderers={{
@@ -16,6 +17,7 @@
heading: MarkdownHeader,
hr: MarkdownHr,
blockquote: MarkdownQuote,
list: MarkdownList,
}}
/>
</div>
@@ -3,17 +3,17 @@
</script>
{#if depth == 1}
<h1 class="font-bold text-3xl"><slot /></h1>
<h1 class="font-bold text-3xl my-2"><slot /></h1>
{:else if depth == 2}
<h2 class="font-bold text-2xl"><slot /></h2>
<h2 class="font-bold text-2xl my-2"><slot /></h2>
{:else if depth == 3}
<h3 class="font-bold text-xl"><slot /></h3>
<h3 class="font-bold text-xl my-2"><slot /></h3>
{:else if depth == 4}
<h4 class="font-bold text-lg"><slot /></h4>
<h4 class="font-bold text-lg my-2"><slot /></h4>
{:else if depth == 5}
<h5 class="font-bold text-base"><slot /></h5>
<h5 class="font-bold text-base my-2"><slot /></h5>
{:else if depth == 6}
<h6 class="font-bold text-sm"><slot /></h6>
<h6 class="font-bold text-sm my-2"><slot /></h6>
{:else}
<slot />
{/if}
@@ -1 +1 @@
<hr class="w-[90%] mx-auto my-4 opacity-80" />
<hr class="w-[90%] mx-auto my-4 opacity-50" />
@@ -0,0 +1,10 @@
<script lang="ts">
export let ordered: boolean
export let start: number
</script>
{#if ordered}
<ol {start} class="list-decimal pl-3"><slot /></ol>
{:else}
<ul class="list-disc pl-3"><slot /></ul>
{/if}