mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
acccb9afdd
commit
f1a7de94ba
2 changed files with 18 additions and 7 deletions
|
|
@ -225,7 +225,24 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
{#if channel?.type === 'dm'}
|
||||||
|
<title
|
||||||
|
>{channel?.name.trim() ||
|
||||||
|
channel?.users.reduce((a, e, i, arr) => {
|
||||||
|
if (e.id === $user?.id) {
|
||||||
|
return a;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (a) {
|
||||||
|
return `${a}, ${e.name}`;
|
||||||
|
} else {
|
||||||
|
return e.name;
|
||||||
|
}
|
||||||
|
}, '')} • Open WebUI</title
|
||||||
|
>
|
||||||
|
{:else}
|
||||||
<title>#{channel?.name ?? 'Channel'} • Open WebUI</title>
|
<title>#{channel?.name ?? 'Channel'} • Open WebUI</title>
|
||||||
|
{/if}
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -173,12 +173,6 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="px-2.5 py-2 cursor-pointer select-none">
|
|
||||||
<div class="flex gap-1.5 items-center">
|
|
||||||
{$i18n.t('MBR')}
|
|
||||||
</div>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue