fix(ui): remove disabled connection URL backgrounds (#34946)

This commit is contained in:
G30 authored and GitHub committed 2026-11-24 20:27:28 +04:00
1 parent 3a8b3fb8a1
commit a667c3176a
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"