From a362241a727cbd695bf41f074d1406abfcfcd7d1 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Fri, 28 Jul 2023 14:17:28 -0700 Subject: [PATCH] misc: tweak line height --- .../components/lemmy/comment/Comment.svelte | 3 +- .../lemmy/comment/CommentForm.svelte | 64 +++++++++++++------ src/lib/components/markdown/Markdown.svelte | 12 ++-- 3 files changed, 52 insertions(+), 27 deletions(-) diff --git a/src/lib/components/lemmy/comment/Comment.svelte b/src/lib/components/lemmy/comment/Comment.svelte index 85d8dfcc..bcb1d3d1 100644 --- a/src/lib/components/lemmy/comment/Comment.svelte +++ b/src/lib/components/lemmy/comment/Comment.svelte @@ -71,6 +71,7 @@ postId={node.comment_view.comment.id} bind:value={newComment} actions={false} + preview={true} /> {/if} @@ -142,7 +143,7 @@ class="flex flex-col whitespace-pre-wrap max-w-full gap-1" > -
+
{#if actions} diff --git a/src/lib/components/lemmy/comment/CommentForm.svelte b/src/lib/components/lemmy/comment/CommentForm.svelte index 9c682c0a..4c034af7 100644 --- a/src/lib/components/lemmy/comment/CommentForm.svelte +++ b/src/lib/components/lemmy/comment/CommentForm.svelte @@ -6,6 +6,8 @@ import { createEventDispatcher } from 'svelte' import { ToastType, addToast } from '$lib/components/ui/toasts/toasts.js' import TextArea from '$lib/components/input/TextArea.svelte' + import MultiSelect from '$lib/components/input/MultiSelect.svelte' + import Markdown from '$lib/components/markdown/Markdown.svelte' export let postId: number export let parentId: number | undefined = undefined @@ -16,7 +18,11 @@ export let value = '' export let actions = true + let previewAction = true + export { previewAction as preview } + let loading = false + let preview = false async function submit() { if (!$user || !$authData || value == '') return @@ -52,26 +58,44 @@
-