mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-01 09:22:44 -05:00
fix(ui): remove disabled connection URL backgrounds (#34946)
This commit is contained in:
2 files changed
+4
-14
No files matched your search
@@ -47,21 +47,16 @@
|
||||
|
||||
<div class="group/setting-row flex gap-1.5">
|
||||
<Tooltip
|
||||
className="w-full relative"
|
||||
className="w-full"
|
||||
content={$i18n.t(`WebUI will make requests to "{{url}}/api/chat"`, {
|
||||
url
|
||||
})}
|
||||
placement="top-start"
|
||||
>
|
||||
{#if !(config?.enable ?? true)}
|
||||
<div
|
||||
class="pointer-events-none absolute top-0 bottom-0 left-0 right-0 opacity-60 bg-base-0 dark:bg-base-900 z-10"
|
||||
></div>
|
||||
{/if}
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="block text-left truncate cursor-pointer text-base-600 dark:text-base-400 transition-colors duration-150 group-hover/setting-row:text-base-900 group-focus-within/setting-row:text-base-900 dark:group-hover/setting-row:text-white dark:group-focus-within/setting-row:text-white w-full text-sm bg-transparent outline-hidden"
|
||||
class:opacity-50={!(config?.enable ?? true)}
|
||||
on:click={() => (showConfigModal = true)}
|
||||
>
|
||||
{url || $i18n.t('Enter URL (e.g. http://localhost:11434)')}
|
||||
|
||||
@@ -44,18 +44,13 @@
|
||||
|
||||
<div class="group/setting-row flex w-full gap-2 items-center">
|
||||
<Tooltip
|
||||
className="w-full relative"
|
||||
className="w-full"
|
||||
content={$i18n.t(`WebUI will make requests to "{{url}}/chat/completions"`, {
|
||||
url
|
||||
})}
|
||||
placement="top-start"
|
||||
>
|
||||
{#if !(config?.enable ?? true)}
|
||||
<div
|
||||
class="pointer-events-none absolute top-0 bottom-0 left-0 right-0 opacity-60 bg-base-0 dark:bg-base-900 z-10"
|
||||
></div>
|
||||
{/if}
|
||||
<div class="flex w-full gap-2">
|
||||
<div class="flex w-full gap-2" class:opacity-50={!(config?.enable ?? true)}>
|
||||
<div class="flex-1 relative">
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in new issue
Block a user