mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +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>
|
||||
|
||||
<svelte:head>
|
||||
<title>#{channel?.name ?? 'Channel'} • Open WebUI</title>
|
||||
{#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>
|
||||
{/if}
|
||||
</svelte:head>
|
||||
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -173,12 +173,6 @@
|
|||
{/if}
|
||||
</div>
|
||||
</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 class="w-full">
|
||||
|
|
|
|||
Loading…
Reference in a new issue