refac: styling

This commit is contained in:
Timothy Jaeryang Baek 2025-09-26 15:00:06 -05:00
parent ac08529380
commit 99d7773230
2 changed files with 24 additions and 20 deletions

View file

@ -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}

View file

@ -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">