misc: fix color in markdown editor
This commit is contained in:
1 parent
d1776284b6
commit
04b31af0de
3 files changed
+14
-9
No files matched your search
+1
-1
@@ -42,7 +42,7 @@
|
||||
"@dicebear/initials": "^6.0.4",
|
||||
"lemmy-js-client": "^0.18.0-rc.2",
|
||||
"markdown-it": "^13.0.1",
|
||||
"mono-svelte": "^0.1.9"
|
||||
"mono-svelte": "^0.2.0"
|
||||
},
|
||||
"type": "module"
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
||||
import { toast } from '$lib/components/ui/toasts/toasts.js'
|
||||
import { uploadImage } from '$lib/lemmy.js'
|
||||
import { Button, Modal, TextArea } from 'mono-svelte'
|
||||
import { Button, Label, Modal, TextArea } from 'mono-svelte'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import {
|
||||
CodeBracket,
|
||||
@@ -112,14 +112,19 @@
|
||||
|
||||
<div>
|
||||
{#if label}
|
||||
<div class="block my-1 font-bold text-sm">{label}</div>
|
||||
<Label>
|
||||
{label}
|
||||
</Label>
|
||||
{/if}
|
||||
<div
|
||||
class="flex flex-col border border-slate-300 dark:border-zinc-800 rounded-md
|
||||
overflow-hidden focus-within:border-black focus-within:dark:border-white transition-colors"
|
||||
class:mt-1={label}
|
||||
>
|
||||
{#if previewing}
|
||||
<div class="px-3 py-2.5 h-32 overflow-auto text-sm resize-y">
|
||||
<div
|
||||
class="px-3 py-2.5 h-32 overflow-auto text-sm resize-y bg-white dark:bg-zinc-950"
|
||||
>
|
||||
<Markdown source={beforePreview(value)} />
|
||||
</div>
|
||||
{:else}
|
||||
@@ -245,7 +250,7 @@ overflow-hidden focus-within:border-black focus-within:dark:border-white transit
|
||||
{/if}
|
||||
|
||||
{#if $$slots.default || previewButton}
|
||||
<div class="p-2 flex items-center w-full">
|
||||
<div class="p-2 flex items-center w-full bg-white dark:bg-zinc-950">
|
||||
{#if previewButton}
|
||||
<MultiSelect
|
||||
bind:selected={previewing}
|
||||
|
||||
@@ -2977,10 +2977,10 @@ mlly@^1.2.0, mlly@^1.4.0:
|
||||
pkg-types "^1.0.3"
|
||||
ufo "^1.1.2"
|
||||
|
||||
mono-svelte@^0.1.9:
|
||||
version "0.1.9"
|
||||
resolved "https://registry.yarnpkg.com/mono-svelte/-/mono-svelte-0.1.9.tgz#6ba5638a1b0cf62dce0bd46c6a7818b2ec272d6b"
|
||||
integrity sha512-/oxreFAoaI6ZKwpyrwqC7apd14zZYdu2lv8cjQbiz+xB82MgLyfWcKjYI4KyqZAyZ50jgP3ugGD8aTRhTyy/Gg==
|
||||
mono-svelte@^0.2.0:
|
||||
version "0.2.0"
|
||||
resolved "https://registry.yarnpkg.com/mono-svelte/-/mono-svelte-0.2.0.tgz#08332d6d356f51c19a4f709d0f69e24b0a425195"
|
||||
integrity sha512-gq8z2B1P9kAMd9zwC+CNqEamnO7GWb2KjZsfEzul8kp2uu9kn+Ex+gV+itSYMg7pTcDBG8Rl/di0zaHZbqrm8Q==
|
||||
|
||||
mri@^1.1.0:
|
||||
version "1.2.0"
|
||||
|
||||
Reference in new issue
Block a user