mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-19 15:55:20 +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}
|
{#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}
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue