refac
This commit is contained in:
@@ -277,7 +277,7 @@
|
||||
</div>
|
||||
|
||||
{#if $user?.role === 'admin' || ($user?.permissions.chat?.system_prompt ?? true)}
|
||||
<hr class="border-gray-50/50 dark:border-gray-850/50 my-3" />
|
||||
<hr class="border-gray-100/50 dark:border-gray-850 my-3" />
|
||||
|
||||
<div>
|
||||
<div class=" my-2.5 text-sm font-medium">{$i18n.t('System Prompt')}</div>
|
||||
|
||||
@@ -48,15 +48,12 @@
|
||||
})}
|
||||
placement="top-start"
|
||||
>
|
||||
{#if !(connection?.config?.enable ?? true)}
|
||||
<div
|
||||
class="absolute top-0 bottom-0 left-0 right-0 opacity-60 bg-white dark:bg-gray-900 z-10"
|
||||
></div>
|
||||
{/if}
|
||||
<div class="flex w-full">
|
||||
<div class="flex-1 relative">
|
||||
<input
|
||||
class=" outline-hidden w-full bg-transparent"
|
||||
class=" outline-hidden w-full bg-transparent {!(connection?.config?.enable ?? true)
|
||||
? 'opacity-50'
|
||||
: ''}"
|
||||
placeholder={$i18n.t('API Base URL')}
|
||||
bind:value={connection.url}
|
||||
autocomplete="off"
|
||||
|
||||
Reference in New Issue
Block a user