refac: styling
This commit is contained in:
@@ -91,15 +91,17 @@
|
||||
|
||||
{#if mounted}
|
||||
{#key func?.content}
|
||||
<FunctionEditor
|
||||
id={func?.id ?? ''}
|
||||
name={func?.name ?? ''}
|
||||
meta={func?.meta ?? { description: '' }}
|
||||
content={func?.content ?? ''}
|
||||
{clone}
|
||||
onSave={(value) => {
|
||||
saveHandler(value);
|
||||
}}
|
||||
/>
|
||||
<div class="px-[16px]">
|
||||
<FunctionEditor
|
||||
id={func?.id ?? ''}
|
||||
name={func?.name ?? ''}
|
||||
meta={func?.meta ?? { description: '' }}
|
||||
content={func?.content ?? ''}
|
||||
{clone}
|
||||
onSave={(value) => {
|
||||
saveHandler(value);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
{/key}
|
||||
{/if}
|
||||
|
||||
@@ -76,16 +76,18 @@
|
||||
</script>
|
||||
|
||||
{#if func}
|
||||
<FunctionEditor
|
||||
edit={true}
|
||||
id={func.id}
|
||||
name={func.name}
|
||||
meta={func.meta}
|
||||
content={func.content}
|
||||
onSave={(value) => {
|
||||
saveHandler(value);
|
||||
}}
|
||||
/>
|
||||
<div class="px-[16px]">
|
||||
<FunctionEditor
|
||||
edit={true}
|
||||
id={func.id}
|
||||
name={func.name}
|
||||
meta={func.meta}
|
||||
content={func.content}
|
||||
onSave={(value) => {
|
||||
saveHandler(value);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
{:else}
|
||||
<div class="flex items-center justify-center h-full">
|
||||
<div class=" pb-16">
|
||||
|
||||
Reference in New Issue
Block a user