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} {#if mounted}
{#key func?.content} {#key func?.content}
<FunctionEditor <div class="px-[16px]">
id={func?.id ?? ''} <FunctionEditor
name={func?.name ?? ''} id={func?.id ?? ''}
meta={func?.meta ?? { description: '' }} name={func?.name ?? ''}
content={func?.content ?? ''} meta={func?.meta ?? { description: '' }}
{clone} content={func?.content ?? ''}
onSave={(value) => { {clone}
saveHandler(value); onSave={(value) => {
}} saveHandler(value);
/> }}
/>
</div>
{/key} {/key}
{/if} {/if}

View file

@ -76,16 +76,18 @@
</script> </script>
{#if func} {#if func}
<FunctionEditor <div class="px-[16px]">
edit={true} <FunctionEditor
id={func.id} edit={true}
name={func.name} id={func.id}
meta={func.meta} name={func.name}
content={func.content} meta={func.meta}
onSave={(value) => { content={func.content}
saveHandler(value); onSave={(value) => {
}} saveHandler(value);
/> }}
/>
</div>
{:else} {:else}
<div class="flex items-center justify-center h-full"> <div class="flex items-center justify-center h-full">
<div class=" pb-16"> <div class=" pb-16">