mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
parent
b2b1a21299
commit
e65ac97c45
@ -105,6 +105,7 @@
|
||||
bind:direction
|
||||
title={$i18n.t("{{user}}'s Chats", { user: user.name })}
|
||||
emptyPlaceholder={$i18n.t('No chats found for this user.')}
|
||||
shareUrl={true}
|
||||
{chatList}
|
||||
{allChatsLoaded}
|
||||
{chatListLoading}
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
export let title = 'Chats';
|
||||
export let emptyPlaceholder = '';
|
||||
export let shareUrl = false;
|
||||
|
||||
export let query = '';
|
||||
|
||||
@ -229,7 +230,11 @@
|
||||
class=" w-full flex justify-between items-center rounded-lg text-sm py-2 px-3 hover:bg-gray-50 dark:hover:bg-gray-850"
|
||||
draggable="false"
|
||||
>
|
||||
<a class=" basis-3/5" href="/c/{chat.id}" on:click={() => (show = false)}>
|
||||
<a
|
||||
class=" basis-3/5"
|
||||
href={shareUrl ? `/s/${chat.id}` : `/c/${chat.id}`}
|
||||
on:click={() => (show = false)}
|
||||
>
|
||||
<div class="text-ellipsis line-clamp-1 w-full">
|
||||
{chat?.title}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user