fix: uninitialized binding, close #674
This commit is contained in:
2 files changed
+9
-6
No files matched your search
@@ -92,7 +92,7 @@
|
||||
tools?: boolean
|
||||
disabled?: boolean
|
||||
rows?: number
|
||||
beforePreview?: (input: string) => string
|
||||
beforePreview?: (input?: string) => string
|
||||
previewing?: boolean
|
||||
class?: ClassValue
|
||||
customLabel?: import('svelte').Snippet
|
||||
@@ -101,14 +101,14 @@
|
||||
|
||||
let {
|
||||
images = true,
|
||||
value = $bindable(''),
|
||||
value = $bindable(),
|
||||
label = undefined,
|
||||
previewButton = true,
|
||||
tools = true,
|
||||
disabled = false,
|
||||
rows = 2,
|
||||
// should be preprocess instead
|
||||
beforePreview = (input) => input,
|
||||
beforePreview = (input) => input ?? '',
|
||||
previewing = $bindable(false),
|
||||
class: clazz = '',
|
||||
customLabel,
|
||||
|
||||
@@ -47,12 +47,15 @@
|
||||
aria-label={$t('aria.postDecor.openLink')}
|
||||
class="absolute inset-0 z-10"
|
||||
></a>
|
||||
<div class="-m-4 mask-b-from-0 relative h-24">
|
||||
<div
|
||||
class="-m-4 mask-b-from-25% relative h-24"
|
||||
style="min-width: calc(100% + calc(var(--spacing) * 8));"
|
||||
>
|
||||
{#if community.community.banner}
|
||||
<img
|
||||
src={optimizeImageURL(community.community.banner, 512)}
|
||||
alt=""
|
||||
class="object-cover min-h-full"
|
||||
class="object-cover min-h-full min-w-full"
|
||||
/>
|
||||
{:else if community.community.icon}
|
||||
<img
|
||||
@@ -61,7 +64,7 @@
|
||||
class="object-cover blur-3xl"
|
||||
/>
|
||||
{:else}
|
||||
<div class="scale-200">
|
||||
<div class="scale-200 min-w-full mask-b-from-25%">
|
||||
<Blobs seed={community.community.name} />
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user