prep: replace $$props.class with props

This commit is contained in:
Xylight committed 2024-10-23 19:55:20 -07:00
1 parent 3ca72662ca
commit 0718c8e0c6
69 files changed
+383 -214

No files matched your search

+6 -2
View File
@@ -98,13 +98,17 @@
export let noStyle: boolean = false
$: tokens = marked.lexer(source)
export let style: string = ''
let clazz: string = ''
export { clazz as class }
</script>
<div
class="{noStyle
? ''
: 'break-words flex flex-col gap-2 leading-[1.5]'} {$$props.class}"
style={$$props.style}
: 'break-words flex flex-col gap-2 leading-[1.5]'} {clazz}"
{style}
>
<SvelteMarkdown
bind:source={tokens}
@@ -93,6 +93,9 @@
}
$: if (!previewing && value) adjustHeight()
let clazz: string = ''
export { clazz as class }
</script>
{#if uploadingImage && images}
@@ -121,7 +124,7 @@
class="flex flex-col border border-slate-200 border-b-slate-300 dark:border-t-zinc-700/70 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 {$$props.class}"
overflow-hidden transition-colors {clazz}"
class:mt-1={label}
>
{#if previewing}
@@ -135,7 +138,7 @@ overflow-hidden transition-colors {$$props.class}"
<!--Toolbar-->
<div
class="[&>*]:flex-shrink-0 flex flex-row overflow-auto p-1.5 gap-1.5 border-b
border-slate-200 dark:border-zinc-900 {$$props.disabled
border-slate-200 dark:border-zinc-900 {disabled
? 'opacity-60 pointer-events-none'
: ''}"
>