This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-10 18:50:43 -06:00
1 parent 37f2548155
commit 90a0e61cef
11 files changed
+58 -58

No files matched your search

+11 -11
View File
@@ -930,7 +930,7 @@
{#if !$mobile && !$showSidebar} {#if !$mobile && !$showSidebar}
<div <div
class=" w-[42px] shrink-0 py-1 px-1 flex flex-col justify-between text-gray-700 dark:text-gray-300 hover:bg-gray-50/30 dark:hover:bg-gray-800/30 h-full z-10 transition-all border-e-[0.5px] border-gray-50 dark:border-gray-850/30" class="w-[calc(42px*var(--app-text-scale,1))] shrink-0 py-[calc(0.25rem*var(--app-text-scale,1))] px-[calc(0.25rem*var(--app-text-scale,1))] flex flex-col justify-between text-gray-700 dark:text-gray-300 hover:bg-gray-50/30 dark:hover:bg-gray-800/30 h-full z-10 transition-all border-e-[0.5px] border-gray-50 dark:border-gray-850/30"
id="sidebar" id="sidebar"
role="navigation" role="navigation"
aria-label={$i18n.t('Chat history')} aria-label={$i18n.t('Chat history')}
@@ -953,7 +953,7 @@
aria-label={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')} aria-label={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}
> >
<div <div
class=" self-center flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900" class="self-center flex size-[calc(30px*var(--app-text-scale,1))] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900"
> >
<!-- LICENSE covers this Open WebUI sidebar logo. <!-- LICENSE covers this Open WebUI sidebar logo.
Do not alter, remove, obscure, or replace it except as LICENSE permits: Do not alter, remove, obscure, or replace it except as LICENSE permits:
@@ -987,7 +987,7 @@
aria-label={$i18n.t('New Chat')} aria-label={$i18n.t('New Chat')}
> >
<div <div
class=" self-center flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900" class="self-center flex size-[calc(30px*var(--app-text-scale,1))] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900"
> >
<EditPencilIcon className="size-4" strokeWidth="1.5" /> <EditPencilIcon className="size-4" strokeWidth="1.5" />
</div> </div>
@@ -1009,7 +1009,7 @@
aria-label={$i18n.t('Search')} aria-label={$i18n.t('Search')}
> >
<div <div
class=" self-center flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900" class="self-center flex size-[calc(30px*var(--app-text-scale,1))] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900"
> >
<SearchIcon className="size-4" strokeWidth="1.5" /> <SearchIcon className="size-4" strokeWidth="1.5" />
</div> </div>
@@ -1035,7 +1035,7 @@
aria-label={$i18n.t(meta.label)} aria-label={$i18n.t(meta.label)}
> >
<div <div
class=" self-center flex size-[30px] items-center justify-center rounded-lg transition {itemId === class="self-center flex size-[calc(30px*var(--app-text-scale,1))] items-center justify-center rounded-lg transition {itemId ===
activeMenuItemId activeMenuItemId
? ($settings?.highContrastMode ?? false) ? ($settings?.highContrastMode ?? false)
? 'bg-black/[0.035] dark:bg-white/[0.06]' ? 'bg-black/[0.035] dark:bg-white/[0.06]'
@@ -1073,7 +1073,7 @@
aria-label={$i18n.t('User menu')} aria-label={$i18n.t('User menu')}
> >
<div <div
class="self-center relative flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900" class="self-center relative flex size-[calc(30px*var(--app-text-scale,1))] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900"
> >
<img <img
src={`${WEBUI_API_BASE_URL}/users/${$user?.id}/profile/image`} src={`${WEBUI_API_BASE_URL}/users/${$user?.id}/profile/image`}
@@ -1116,7 +1116,7 @@
? `${$mobile ? 'bg-gray-50 dark:bg-gray-950' : 'bg-gray-50/70 dark:bg-gray-950/70'} z-50` ? `${$mobile ? 'bg-gray-50 dark:bg-gray-950' : 'bg-gray-50/70 dark:bg-gray-950/70'} z-50`
: ' bg-transparent z-0 '} {$isApp : ' bg-transparent z-0 '} {$isApp
? `ml-[4.5rem] md:ml-0 ` ? `ml-[4.5rem] md:ml-0 `
: ' transition-all duration-300 '} shrink-0 text-gray-700 dark:text-gray-300 text-[13px] leading-5 fixed top-0 left-0 overflow-x-hidden : ' transition-all duration-300 '} shrink-0 text-gray-700 dark:text-gray-300 text-[0.8125rem] leading-5 fixed top-0 left-0 overflow-x-hidden
" "
transition:slide={{ duration: 250, axis: 'x' }} transition:slide={{ duration: 250, axis: 'x' }}
data-state={$showSidebar} data-state={$showSidebar}
@@ -1208,7 +1208,7 @@
</div> </div>
<div class="flex flex-1 self-center translate-y-[0.5px]"> <div class="flex flex-1 self-center translate-y-[0.5px]">
<div class=" self-center text-[13px] leading-5">{$i18n.t('New Chat')}</div> <div class=" self-center text-[0.8125rem] leading-5">{$i18n.t('New Chat')}</div>
</div> </div>
<HotkeyHint name="newChat" className=" group-hover:visible invisible" /> <HotkeyHint name="newChat" className=" group-hover:visible invisible" />
@@ -1230,7 +1230,7 @@
</div> </div>
<div class="flex flex-1 self-center translate-y-[0.5px]"> <div class="flex flex-1 self-center translate-y-[0.5px]">
<div class=" self-center text-[13px] leading-5">{$i18n.t('Search')}</div> <div class=" self-center text-[0.8125rem] leading-5">{$i18n.t('Search')}</div>
</div> </div>
<HotkeyHint name="search" className=" group-hover:visible invisible" /> <HotkeyHint name="search" className=" group-hover:visible invisible" />
</button> </button>
@@ -1272,7 +1272,7 @@
</div> </div>
<div class="flex self-center translate-y-[0.5px]"> <div class="flex self-center translate-y-[0.5px]">
<div class=" self-center text-[13px] leading-5">{$i18n.t(meta.label)}</div> <div class=" self-center text-[0.8125rem] leading-5">{$i18n.t(meta.label)}</div>
</div> </div>
</a> </a>
</div> </div>
@@ -1488,7 +1488,7 @@
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[170px]"> <DropdownMenu className="min-w-[170px]">
<button <button
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={markAllChatsReadHandler} on:click={markAllChatsReadHandler}
> >
<CheckIcon className="size-3.5" /> <CheckIcon className="size-3.5" />
@@ -100,7 +100,7 @@
{sideOffset} {sideOffset}
> >
<div class="border-b border-gray-50/60 px-3 py-2 dark:border-gray-800/25"> <div class="border-b border-gray-50/60 px-3 py-2 dark:border-gray-800/25">
<div class="truncate text-[13px] font-medium leading-5 text-gray-900 dark:text-gray-100"> <div class="truncate text-[0.8125rem] font-medium leading-5 text-gray-900 dark:text-gray-100">
{title || $i18n.t('Chat')} {title || $i18n.t('Chat')}
</div> </div>
</div> </div>
@@ -123,7 +123,7 @@
</div> </div>
{:else if previewReady} {:else if previewReady}
<Messages <Messages
className="flex w-full pt-2 pb-0 [&_.message-listitem]:!mb-1 [&_.message-listitem]:!max-w-none [&_.message-listitem]:!px-3 [&_.pb-18]:!pb-1.5 [&_.markdown-prose]:!text-xs [&_.markdown-prose]:!leading-snug [&_.whitespace-pre-wrap]:!text-xs [&_.whitespace-pre-wrap]:!leading-snug [&_.text-\[0\.9375rem\]]:!text-xs [&_.text-sm]:!text-xs [&_.tool-call-body_pre]:!text-[11px] [&_.rounded-3xl]:!rounded-2xl [&_.chat-user_.rounded-3xl]:!bg-gray-50 dark:[&_.chat-user_.rounded-3xl]:!bg-gray-800 [&_.px-4]:!px-3 [&_.py-3]:!py-2 [&_.py-1\.5]:!py-1" className="flex w-full pt-2 pb-0 [&_.message-listitem]:!mb-1 [&_.message-listitem]:!max-w-none [&_.message-listitem]:!px-3 [&_.pb-18]:!pb-1.5 [&_.markdown-prose]:!text-xs [&_.markdown-prose]:!leading-snug [&_.whitespace-pre-wrap]:!text-xs [&_.whitespace-pre-wrap]:!leading-snug [&_.text-\[0\.9375rem\]]:!text-xs [&_.text-sm]:!text-xs [&_.tool-call-body_pre]:!text-[0.6875rem] [&_.rounded-3xl]:!rounded-2xl [&_.chat-user_.rounded-3xl]:!bg-gray-50 dark:[&_.chat-user_.rounded-3xl]:!bg-gray-800 [&_.px-4]:!px-3 [&_.py-3]:!py-2 [&_.py-1\.5]:!py-1"
chatId={`chat-hover-preview-${chatId}`} chatId={`chat-hover-preview-${chatId}`}
user={$user} user={$user}
prompt="" prompt=""
@@ -503,7 +503,7 @@
{#if confirmEdit} {#if confirmEdit}
<div <div
id="sidebar-chat-item" id="sidebar-chat-item"
class=" w-full flex justify-between rounded-xl px-2 py-[6px] {id === $chatId || confirmEdit class=" w-full flex justify-between rounded-xl px-2 py-1.5 {id === $chatId || confirmEdit
? ($settings?.highContrastMode ?? false) ? ($settings?.highContrastMode ?? false)
? 'bg-black/[0.035] dark:bg-white/[0.06] selected' ? 'bg-black/[0.035] dark:bg-white/[0.06] selected'
: 'bg-black/[0.035] dark:bg-white/[0.045] selected' : 'bg-black/[0.035] dark:bg-white/[0.045] selected'
@@ -548,7 +548,7 @@
> >
<LinkPreview.Trigger <LinkPreview.Trigger
id="sidebar-chat-item" id="sidebar-chat-item"
class=" w-full flex justify-between rounded-xl px-2 py-[6px] {id === $chatId || confirmEdit class=" w-full flex justify-between rounded-xl px-2 py-1.5 {id === $chatId || confirmEdit
? ($settings?.highContrastMode ?? false) ? ($settings?.highContrastMode ?? false)
? 'bg-black/[0.035] dark:bg-white/[0.06] selected' ? 'bg-black/[0.035] dark:bg-white/[0.06] selected'
: 'bg-black/[0.035] dark:bg-white/[0.045] selected' : 'bg-black/[0.035] dark:bg-white/[0.045] selected'
@@ -610,7 +610,7 @@
{/if} {/if}
<div <div
dir="auto" dir="auto"
class="text-left self-center overflow-hidden w-full h-[20px] truncate {unread class="text-left self-center overflow-hidden w-full h-5 truncate {unread
? 'font-normal text-gray-800 dark:text-gray-200' ? 'font-normal text-gray-800 dark:text-gray-200'
: ''} {showInlineActions && !readonly ? 'pr-12' : ''}" : ''} {showInlineActions && !readonly ? 'pr-12' : ''}"
> >
@@ -620,7 +620,7 @@
<!-- Time ago indicator --> <!-- Time ago indicator -->
{#if (updatedAt ?? createdAt) && !showInlineActions} {#if (updatedAt ?? createdAt) && !showInlineActions}
<div class="shrink-0 self-center text-[10px] text-gray-400 dark:text-gray-500 pl-2"> <div class="shrink-0 self-center text-[0.625rem] text-gray-400 dark:text-gray-500 pl-2">
{formatTimeAgo((updatedAt ?? createdAt) as number)} {formatTimeAgo((updatedAt ?? createdAt) as number)}
</div> </div>
{/if} {/if}
@@ -306,7 +306,7 @@
{#if $user?.role === 'admin' || ($user.permissions?.chat?.share ?? true)} {#if $user?.role === 'admin' || ($user.permissions?.chat?.share ?? true)}
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full"
on:click={() => { on:click={() => {
shareHandler(); shareHandler();
}} }}
@@ -321,7 +321,7 @@
<button <button
slot="trigger" slot="trigger"
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full"
> >
<DownloadIcon className="size-3.5" strokeWidth="1.5" /> <DownloadIcon className="size-3.5" strokeWidth="1.5" />
<div class="flex items-center">{$i18n.t('Download')}</div> <div class="flex items-center">{$i18n.t('Download')}</div>
@@ -329,7 +329,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full"
on:click={() => { on:click={() => {
downloadJSONExport(); downloadJSONExport();
}} }}
@@ -339,7 +339,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full"
on:click={() => { on:click={() => {
downloadTxt(); downloadTxt();
}} }}
@@ -349,7 +349,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 select-none w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 select-none w-full"
on:click={() => { on:click={() => {
downloadPdf(); downloadPdf();
}} }}
@@ -361,7 +361,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full"
on:click={() => { on:click={() => {
show = false; show = false;
renameHandler(); renameHandler();
@@ -373,7 +373,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full"
on:click={() => { on:click={() => {
show = false; show = false;
markUnreadHandler(); markUnreadHandler();
@@ -387,7 +387,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full"
on:click={() => { on:click={() => {
show = false; show = false;
pinHandler(); pinHandler();
@@ -405,7 +405,7 @@
{#if $user?.role === 'admin' || ($user?.permissions?.chat?.import ?? true)} {#if $user?.role === 'admin' || ($user?.permissions?.chat?.import ?? true)}
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full"
on:click={() => { on:click={() => {
show = false; show = false;
cloneChatHandler(); cloneChatHandler();
@@ -421,7 +421,7 @@
<button <button
slot="trigger" slot="trigger"
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 select-none w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 select-none w-full"
> >
<FolderIcon className="size-3.5" /> <FolderIcon className="size-3.5" />
<div class="flex items-center">{$i18n.t('Move')}</div> <div class="flex items-center">{$i18n.t('Move')}</div>
@@ -430,7 +430,7 @@
{#each $folders.sort((a, b) => b.updated_at - a.updated_at) as folder} {#each $folders.sort((a, b) => b.updated_at - a.updated_at) as folder}
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 overflow-hidden w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 overflow-hidden w-full"
on:click={() => { on:click={() => {
moveChatHandler(chatId, folder.id); moveChatHandler(chatId, folder.id);
}} }}
@@ -447,7 +447,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full"
on:click={() => { on:click={() => {
archiveChatHandler(); archiveChatHandler();
}} }}
@@ -458,7 +458,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 w-full"
on:click={() => { on:click={() => {
deleteHandler(); deleteHandler();
}} }}
@@ -67,7 +67,7 @@
{/each} {/each}
{#if sharedList.length > 0} {#if sharedList.length > 0}
<div class="w-full pl-2.5 text-[11px] text-gray-400 dark:text-gray-600 pt-2 pb-0.5"> <div class="w-full pl-2.5 text-[0.6875rem] text-gray-400 dark:text-gray-600 pt-2 pb-0.5">
{$i18n.t('Shared')} {$i18n.t('Shared')}
</div> </div>
{#each sharedList as folderId (folderId)} {#each sharedList as folderId (folderId)}
@@ -48,7 +48,7 @@
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[170px]"> <DropdownMenu className="min-w-[170px]">
<button <button
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
onCreateSubFolder(); onCreateSubFolder();
}} }}
@@ -60,7 +60,7 @@
<hr class="border-gray-50/30 dark:border-gray-800/30 mx-1 my-0.5" /> <hr class="border-gray-50/30 dark:border-gray-800/30 mx-1 my-0.5" />
<button <button
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
show = false; show = false;
onMarkAllRead(); onMarkAllRead();
@@ -73,7 +73,7 @@
<hr class="border-gray-50/30 dark:border-gray-800/30 mx-1 my-0.5" /> <hr class="border-gray-50/30 dark:border-gray-800/30 mx-1 my-0.5" />
<button <button
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
onEdit(); onEdit();
}} }}
@@ -83,7 +83,7 @@
</button> </button>
<button <button
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
onExport(); onExport();
}} }}
@@ -93,7 +93,7 @@
</button> </button>
<button <button
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
onShare(); onShare();
}} }}
@@ -105,7 +105,7 @@
<hr class="border-gray-50/30 dark:border-gray-800/30 mx-1 my-0.5" /> <hr class="border-gray-50/30 dark:border-gray-800/30 mx-1 my-0.5" />
<button <button
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
onDelete(); onDelete();
}} }}
@@ -29,7 +29,7 @@
}} }}
> >
<a <a
class="grow flex items-center space-x-2 rounded-xl px-2 py-[7px] group-hover:bg-gray-100 dark:group-hover:bg-gray-900 transition" class="grow flex items-center space-x-2 rounded-xl px-2 py-[0.4375rem] group-hover:bg-gray-100 dark:group-hover:bg-gray-900 transition"
href="/?model={model?.id}" href="/?model={model?.id}"
on:click={onClick} on:click={onClick}
draggable="false" draggable="false"
@@ -49,7 +49,7 @@
</div> </div>
<div class="flex self-center translate-y-[0.5px]"> <div class="flex self-center translate-y-[0.5px]">
<div class=" self-center text-[13px] leading-5 line-clamp-1"> <div class=" self-center text-[0.8125rem] leading-5 line-clamp-1">
{model?.name ?? model.id} {model?.name ?? model.id}
</div> </div>
</div> </div>
@@ -67,7 +67,7 @@
data-id={note.id} data-id={note.id}
> >
<a <a
class="grow flex items-center gap-2.5 text-[13px] leading-5" class="grow flex items-center gap-2.5 text-[0.8125rem] leading-5"
href={`/notes/${note.id}`} href={`/notes/${note.id}`}
on:click={() => { on:click={() => {
selectedChatId = null; selectedChatId = null;
@@ -844,7 +844,7 @@
{#if !folders[folderId]?.shared && (folders[folderId]?.unread_count ?? 0) > 0} {#if !folders[folderId]?.shared && (folders[folderId]?.unread_count ?? 0) > 0}
<div <div
class="inline-flex h-4 min-w-4 shrink-0 items-center justify-center rounded-md bg-sky-500/10 px-1 text-[10px] font-semibold leading-4 text-sky-600 dark:bg-sky-400/10 dark:text-sky-300" class="inline-flex h-4 min-w-4 shrink-0 items-center justify-center rounded-md bg-sky-500/10 px-1 text-[0.625rem] font-semibold leading-4 text-sky-600 dark:bg-sky-400/10 dark:text-sky-300"
title={$i18n.t('Unread')} title={$i18n.t('Unread')}
> >
{formatUnreadCount(folders[folderId].unread_count)} {formatUnreadCount(folders[folderId].unread_count)}
@@ -946,7 +946,7 @@
{#if hasMoreChats} {#if hasMoreChats}
<button <button
class="w-full px-2 py-0.5 text-left text-[11px] text-gray-400 transition hover:text-gray-700 disabled:cursor-not-allowed dark:text-gray-600 dark:hover:text-gray-300" class="w-full px-2 py-0.5 text-left text-[0.6875rem] text-gray-400 transition hover:text-gray-700 disabled:cursor-not-allowed dark:text-gray-600 dark:hover:text-gray-300"
disabled={chatsLoading} disabled={chatsLoading}
on:click={() => setFolderItems(true)} on:click={() => setFolderItems(true)}
> >
@@ -92,13 +92,13 @@
</div> </div>
{#if folder.owner_name} {#if folder.owner_name}
<div class="shrink-0 text-[10px] text-gray-400 dark:text-gray-600 pr-1"> <div class="shrink-0 text-[0.625rem] text-gray-400 dark:text-gray-600 pr-1">
{folder.owner_name} {folder.owner_name}
</div> </div>
{/if} {/if}
{#if !isWritable} {#if !isWritable}
<div class="shrink-0 text-[10px] text-gray-400 dark:text-gray-600" title="Read only"> <div class="shrink-0 text-[0.625rem] text-gray-400 dark:text-gray-600" title="Read only">
<Eye className="size-3" /> <Eye className="size-3" />
</div> </div>
{/if} {/if}
@@ -138,7 +138,7 @@
{#if hasMoreChats} {#if hasMoreChats}
<button <button
class="w-full px-2 py-0.5 text-left text-[11px] text-gray-400 transition hover:text-gray-700 disabled:cursor-not-allowed dark:text-gray-600 dark:hover:text-gray-300" class="w-full px-2 py-0.5 text-left text-[0.6875rem] text-gray-400 transition hover:text-gray-700 disabled:cursor-not-allowed dark:text-gray-600 dark:hover:text-gray-300"
disabled={loading} disabled={loading}
on:click={() => loadChats(true)} on:click={() => loadChats(true)}
> >
@@ -159,7 +159,7 @@
{/if} {/if}
{#if chats.length === 0 && children.length === 0 && !hasMoreChats} {#if chats.length === 0 && children.length === 0 && !hasMoreChats}
<div class="text-[11px] text-gray-400 dark:text-gray-600 py-1 px-2"> <div class="text-[0.6875rem] text-gray-400 dark:text-gray-600 py-1 px-2">
{$i18n.t('Empty')} {$i18n.t('Empty')}
</div> </div>
{/if} {/if}
@@ -146,7 +146,7 @@
: $i18n.t('Active Users')} : $i18n.t('Active Users')}
> >
<div <div
class="ml-auto flex shrink-0 items-center justify-end gap-1 rounded-full px-1.5 py-0.5 text-[11px] leading-none text-gray-500 dark:text-gray-400" class="ml-auto flex shrink-0 items-center justify-end gap-1 rounded-full px-1.5 py-0.5 text-[0.6875rem] leading-none text-gray-500 dark:text-gray-400"
on:mouseenter={() => { on:mouseenter={() => {
if ($config?.features?.enable_public_active_users_count || role === 'admin') { if ($config?.features?.enable_public_active_users_count || role === 'admin') {
getUsageInfo(); getUsageInfo();
@@ -243,7 +243,7 @@
<a <a
href="/workspace" href="/workspace"
draggable="false" draggable="false"
class="flex flex-1 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex flex-1 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
on:click={async (e) => { on:click={async (e) => {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return; if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return;
e.preventDefault(); e.preventDefault();
@@ -287,7 +287,7 @@
<a <a
href="/notes" href="/notes"
draggable="false" draggable="false"
class="flex flex-1 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex flex-1 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
on:click={async (e) => { on:click={async (e) => {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return; if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return;
e.preventDefault(); e.preventDefault();
@@ -331,7 +331,7 @@
<a <a
href="/calendar" href="/calendar"
draggable="false" draggable="false"
class="flex flex-1 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex flex-1 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
on:click={async (e) => { on:click={async (e) => {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return; if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return;
e.preventDefault(); e.preventDefault();
@@ -375,7 +375,7 @@
<a <a
href="/automations" href="/automations"
draggable="false" draggable="false"
class="flex flex-1 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex flex-1 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
on:click={async (e) => { on:click={async (e) => {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return; if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return;
e.preventDefault(); e.preventDefault();
@@ -419,7 +419,7 @@
<a <a
href="/playground" href="/playground"
draggable="false" draggable="false"
class="flex flex-1 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex flex-1 h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
on:click={async (e) => { on:click={async (e) => {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return; if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return;
e.preventDefault(); e.preventDefault();
@@ -468,7 +468,7 @@
href="https://docs.openwebui.com" href="https://docs.openwebui.com"
target="_blank" target="_blank"
draggable="false" draggable="false"
class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
id="chat-share-button" id="chat-share-button"
on:click={() => { on:click={() => {
show = false; show = false;
@@ -485,7 +485,7 @@
href="https://github.com/open-webui/open-webui/releases" href="https://github.com/open-webui/open-webui/releases"
target="_blank" target="_blank"
draggable="false" draggable="false"
class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
id="chat-share-button" id="chat-share-button"
on:click={() => { on:click={() => {
show = false; show = false;
@@ -499,7 +499,7 @@
{/if} {/if}
<button <button
class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
type="button" type="button"
id="chat-share-button" id="chat-share-button"
on:click={async () => { on:click={async () => {
@@ -525,7 +525,7 @@
<a <a
href="/admin" href="/admin"
draggable="false" draggable="false"
class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
on:click={async (e) => { on:click={async (e) => {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) { if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) {
return; return;
@@ -547,7 +547,7 @@
{/if} {/if}
<button <button
class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
type="button" type="button"
on:click={async () => { on:click={async () => {
show = false; show = false;
@@ -567,7 +567,7 @@
</button> </button>
<button <button
class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[13px] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none" class="flex h-[1.6875rem] items-center gap-2 rounded-xl px-2 text-[0.8125rem] w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition cursor-pointer select-none"
type="button" type="button"
on:click={async () => { on:click={async () => {
const res = await userSignOut(); const res = await userSignOut();