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
|
tools?: boolean
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
rows?: number
|
rows?: number
|
||||||
beforePreview?: (input: string) => string
|
beforePreview?: (input?: string) => string
|
||||||
previewing?: boolean
|
previewing?: boolean
|
||||||
class?: ClassValue
|
class?: ClassValue
|
||||||
customLabel?: import('svelte').Snippet
|
customLabel?: import('svelte').Snippet
|
||||||
@@ -101,14 +101,14 @@
|
|||||||
|
|
||||||
let {
|
let {
|
||||||
images = true,
|
images = true,
|
||||||
value = $bindable(''),
|
value = $bindable(),
|
||||||
label = undefined,
|
label = undefined,
|
||||||
previewButton = true,
|
previewButton = true,
|
||||||
tools = true,
|
tools = true,
|
||||||
disabled = false,
|
disabled = false,
|
||||||
rows = 2,
|
rows = 2,
|
||||||
// should be preprocess instead
|
// should be preprocess instead
|
||||||
beforePreview = (input) => input,
|
beforePreview = (input) => input ?? '',
|
||||||
previewing = $bindable(false),
|
previewing = $bindable(false),
|
||||||
class: clazz = '',
|
class: clazz = '',
|
||||||
customLabel,
|
customLabel,
|
||||||
|
|||||||
@@ -47,12 +47,15 @@
|
|||||||
aria-label={$t('aria.postDecor.openLink')}
|
aria-label={$t('aria.postDecor.openLink')}
|
||||||
class="absolute inset-0 z-10"
|
class="absolute inset-0 z-10"
|
||||||
></a>
|
></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}
|
{#if community.community.banner}
|
||||||
<img
|
<img
|
||||||
src={optimizeImageURL(community.community.banner, 512)}
|
src={optimizeImageURL(community.community.banner, 512)}
|
||||||
alt=""
|
alt=""
|
||||||
class="object-cover min-h-full"
|
class="object-cover min-h-full min-w-full"
|
||||||
/>
|
/>
|
||||||
{:else if community.community.icon}
|
{:else if community.community.icon}
|
||||||
<img
|
<img
|
||||||
@@ -61,7 +64,7 @@
|
|||||||
class="object-cover blur-3xl"
|
class="object-cover blur-3xl"
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="scale-200">
|
<div class="scale-200 min-w-full mask-b-from-25%">
|
||||||
<Blobs seed={community.community.name} />
|
<Blobs seed={community.community.name} />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in new issue
Block a user