mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
refac: styling
This commit is contained in:
parent
ac08529380
commit
99d7773230
2 changed files with 24 additions and 20 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue