refac
This commit is contained in:
@@ -296,6 +296,9 @@
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<!-- LICENSE covers this Open WebUI browser-title identifier.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
{#if channel?.type === 'dm'}
|
||||
<title
|
||||
>{channel?.name.trim() ||
|
||||
|
||||
@@ -197,6 +197,9 @@
|
||||
alt={item?.data?.name ?? item.id}
|
||||
class="rounded-full size-5 items-center mr-2"
|
||||
on:error={(e) => {
|
||||
// LICENSE covers this Open WebUI fallback logo.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
e.currentTarget.src = '/favicon.png';
|
||||
}}
|
||||
/>
|
||||
@@ -206,6 +209,9 @@
|
||||
alt={item?.label ?? item.id}
|
||||
class="rounded-full size-5 items-center mr-2"
|
||||
on:error={(e) => {
|
||||
// LICENSE covers this Open WebUI fallback logo.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
e.currentTarget.src = '/favicon.png';
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -343,6 +343,9 @@
|
||||
message.reply_to_message.meta.model_id}
|
||||
class="size-4 ml-0.5 rounded-full object-cover"
|
||||
on:error={(e) => {
|
||||
// LICENSE covers this Open WebUI fallback logo.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
e.currentTarget.src = '/favicon.png';
|
||||
}}
|
||||
/>
|
||||
@@ -386,6 +389,9 @@
|
||||
alt={message.meta.model_name ?? message.meta.model_id}
|
||||
class="size-8 translate-y-1 ml-0.5 object-cover rounded-full"
|
||||
on:error={(e) => {
|
||||
// LICENSE covers this Open WebUI fallback logo.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
e.currentTarget.src = '/favicon.png';
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -89,6 +89,9 @@
|
||||
class="w-full flex items-center gap-3 px-3.5 py-3 hover:bg-gray-50 dark:hover:bg-gray-900 rounded-xl transition"
|
||||
on:click={onClick}
|
||||
>
|
||||
<!-- LICENSE covers this Open WebUI fallback logo.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<img
|
||||
src={image || `${WEBUI_BASE_URL}/static/favicon.png`}
|
||||
class="rounded-full size-8 object-cover flex-shrink-0"
|
||||
@@ -123,6 +126,9 @@
|
||||
class="shrink-0 rounded-xl overflow-hidden hover:opacity-80 transition"
|
||||
on:click={() => filesInputElement.click()}
|
||||
>
|
||||
<!-- LICENSE covers this Open WebUI fallback logo.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<img
|
||||
src={image || `${WEBUI_BASE_URL}/static/favicon.png`}
|
||||
class="size-8 object-cover"
|
||||
|
||||
Reference in New Issue
Block a user