This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-10 18:52:18 -06:00
1 parent eeaf1a1df0
commit d4461bd6f3
139 files changed
+470 -470

No files matched your search

+11 -11
View File
@@ -694,7 +694,7 @@ html.high-contrast.dark .ProseMirror p.is-editor-empty:first-child::before {
/* this is a rough fix for the first cursor position when the first paragraph is empty */ /* this is a rough fix for the first cursor position when the first paragraph is empty */
.ProseMirror > .ProseMirror-yjs-cursor:first-child { .ProseMirror > .ProseMirror-yjs-cursor:first-child {
margin-top: 16px; margin-top: 1rem;
} }
/* This gives the remote user caret. The colors are automatically overwritten*/ /* This gives the remote user caret. The colors are automatically overwritten*/
.ProseMirror-yjs-cursor { .ProseMirror-yjs-cursor {
@@ -712,12 +712,12 @@ html.high-contrast.dark .ProseMirror p.is-editor-empty:first-child::before {
position: absolute; position: absolute;
top: -1.05em; top: -1.05em;
left: -1px; left: -1px;
font-size: 13px; font-size: 0.8125rem;
background-color: rgb(250, 129, 0); background-color: rgb(250, 129, 0);
user-select: none; user-select: none;
color: white; color: white;
padding-left: 2px; padding-left: 0.125rem;
padding-right: 2px; padding-right: 0.125rem;
white-space: nowrap; white-space: nowrap;
} }
@@ -734,7 +734,7 @@ body {
/* Position the handle relative to each LI */ /* Position the handle relative to each LI */
.pm-li--with-handle { .pm-li--with-handle {
position: relative; position: relative;
margin-left: 12px; /* make space for the handle */ margin-left: 0.75rem; /* make space for the handle */
} }
.tiptap ul[data-type='taskList'] .pm-list-drag-handle { .tiptap ul[data-type='taskList'] .pm-list-drag-handle {
@@ -744,16 +744,16 @@ body {
/* The drag handle itself */ /* The drag handle itself */
.pm-list-drag-handle { .pm-list-drag-handle {
position: absolute; position: absolute;
left: -36px; /* pull into the left gutter */ left: -2.25rem; /* pull into the left gutter */
top: 1px; top: 1px;
width: 18px; width: 1.125rem;
height: 18px; height: 1.125rem;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 12px; font-size: 0.75rem;
line-height: 1; line-height: 1;
border-radius: 4px; border-radius: 0.25rem;
cursor: grab; cursor: grab;
user-select: none; user-select: none;
opacity: 0.35; opacity: 0.35;
@@ -763,7 +763,7 @@ body {
} }
.tiptap ul[data-type='taskList'] .pm-list-drag-handle { .tiptap ul[data-type='taskList'] .pm-list-drag-handle {
left: -16px; /* pull into the left gutter more to avoid the checkbox */ left: -1rem; /* pull into the left gutter more to avoid the checkbox */
} }
.pm-list-drag-handle:active { .pm-list-drag-handle:active {
+1 -1
View File
@@ -117,7 +117,7 @@
<div> <div>
{#if title} {#if title}
<div class=" text-[13px] font-normal mb-0.5 line-clamp-1">{title}</div> <div class=" text-[0.8125rem] font-normal mb-0.5 line-clamp-1">{title}</div>
{/if} {/if}
<div class=" line-clamp-2 text-xs self-center dark:text-gray-300 font-normal"> <div class=" line-clamp-2 text-xs self-center dark:text-gray-300 font-normal">
+1 -1
View File
@@ -74,7 +74,7 @@
<!-- LICENSE covers this Open WebUI welcome identifier. <!-- LICENSE covers this Open WebUI welcome identifier.
Do not alter, remove, obscure, or replace it except as LICENSE permits: Do not alter, remove, obscure, or replace it except as LICENSE permits:
https://docs.openwebui.com/license. --> https://docs.openwebui.com/license. -->
<div class="mb-4 text-[11px] font-medium tracking-[0.18em] uppercase opacity-35"> <div class="mb-4 text-[0.6875rem] font-medium tracking-[0.18em] uppercase opacity-35">
Open WebUI Open WebUI
</div> </div>
@@ -88,7 +88,7 @@
: period === 'year' || period === 'all' : period === 'year' || period === 'all'
? 'M/D/YY' ? 'M/D/YY'
: 'M/D'} : 'M/D'}
<div class="absolute inset-x-0 bottom-0 flex justify-between px-0.5 text-[10px] text-gray-400"> <div class="absolute inset-x-0 bottom-0 flex justify-between px-0.5 text-[0.625rem] text-gray-400">
{#each Array(labelCount) as _, i} {#each Array(labelCount) as _, i}
{@const idx = i === labelCount - 1 ? data.length - 1 : Math.min(i * step, data.length - 1)} {@const idx = i === labelCount - 1 ? data.length - 1 : Math.min(i * step, data.length - 1)}
{#if data[idx]} {#if data[idx]}
@@ -102,13 +102,13 @@
{#if hovered} {#if hovered}
{@const total = Object.values(hovered.models || {}).reduce((a, b) => a + b, 0)} {@const total = Object.values(hovered.models || {}).reduce((a, b) => a + b, 0)}
<div <div
class="pointer-events-none absolute top-1 text-[11px]" class="pointer-events-none absolute top-1 text-[0.6875rem]"
style="left:{Math.min(Math.max((mouseX / w) * 100, 8), 92)}%" style="left:{Math.min(Math.max((mouseX / w) * 100, 8), 92)}%"
> >
<div <div
class="min-w-[140px] -translate-x-1/2 rounded border border-gray-100 bg-white px-2.5 py-1.5 shadow-sm dark:border-gray-800 dark:bg-gray-900" class="min-w-[8.75rem] -translate-x-1/2 rounded border border-gray-100 bg-white px-2.5 py-1.5 shadow-sm dark:border-gray-800 dark:bg-gray-900"
> >
<div class="mb-1.5 text-[10px] text-gray-400"> <div class="mb-1.5 text-[0.625rem] text-gray-400">
{#if hovered.date?.includes(':')} {#if hovered.date?.includes(':')}
{dayjs(hovered.date).format('MMM D, h A')} {dayjs(hovered.date).format('MMM D, h A')}
{:else} {:else}
@@ -488,7 +488,7 @@
e.target.src = '/favicon.png'; e.target.src = '/favicon.png';
}} }}
/> />
<span class="truncate max-w-[150px]">{model.name}</span> <span class="truncate max-w-[9.375rem]">{model.name}</span>
</div> </div>
</td> </td>
<td class="px-3 py-1 text-right">{model.count.toLocaleString()}</td> <td class="px-3 py-1 text-right">{model.count.toLocaleString()}</td>
@@ -596,7 +596,7 @@
e.target.src = '/user.png'; e.target.src = '/user.png';
}} }}
/> />
<span class="truncate max-w-[150px]" <span class="truncate max-w-[9.375rem]"
>{user.name || user.email || user.user_id.substring(0, 8)}</span >{user.name || user.email || user.user_id.substring(0, 8)}</span
> >
</div> </div>
+1 -1
View File
@@ -117,7 +117,7 @@
</a> </a>
</div> </div>
<div class="flex-1 mt-1 lg:mt-0 px-[16px] lg:pr-[16px] lg:pl-0 overflow-y-scroll"> <div class="flex-1 mt-1 lg:mt-0 px-[1rem] lg:pr-[1rem] lg:pl-0 overflow-y-scroll">
{#if selectedTab === 'leaderboard'} {#if selectedTab === 'leaderboard'}
<Leaderboard /> <Leaderboard />
{:else if selectedTab === 'feedback'} {:else if selectedTab === 'feedback'}
@@ -18,9 +18,9 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[150px]"> <DropdownMenu className="min-w-[9.375rem]">
<button <button
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
dispatch('delete'); dispatch('delete');
show = false; show = false;
@@ -125,7 +125,7 @@
<div class="mb-2 -mx-1"> <div class="mb-2 -mx-1">
<div class="flex flex-wrap gap-1 mt-1"> <div class="flex flex-wrap gap-1 mt-1">
{#each selectedFeedback?.data?.tags as tag} {#each selectedFeedback?.data?.tags as tag}
<span class="px-2 py-0.5 rounded-full bg-gray-100 dark:bg-gray-850 text-[9px]" <span class="px-2 py-0.5 rounded-full bg-gray-100 dark:bg-gray-850 text-[0.5625rem]"
>{tag}</span >{tag}</span
> >
{/each} {/each}
@@ -243,7 +243,7 @@
...modelIds.map((mid) => ({ value: mid, label: mid })) ...modelIds.map((mid) => ({ value: mid, label: mid }))
]} ]}
placeholder={$i18n.t('All')} placeholder={$i18n.t('All')}
triggerClass="relative w-full flex items-center gap-0.5 px-2.5 py-1.5 bg-transparent rounded-xl text-[13px] font-normal text-gray-700 transition hover:text-gray-900 dark:text-gray-200 dark:hover:text-gray-100" triggerClass="relative w-full flex items-center gap-0.5 px-2.5 py-1.5 bg-transparent rounded-xl text-[0.8125rem] font-normal text-gray-700 transition hover:text-gray-900 dark:text-gray-200 dark:hover:text-gray-100"
onChange={() => { onChange={() => {
page = 1; page = 1;
getFeedbacks(); getFeedbacks();
@@ -279,9 +279,9 @@
</button> </button>
<div slot="content"> <div slot="content">
<DropdownMenu className="w-[170px]"> <DropdownMenu className="w-[10.625rem]">
<button <button
class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
type="button" type="button"
on:click={() => exportHandler('json')} on:click={() => exportHandler('json')}
> >
@@ -289,7 +289,7 @@
</button> </button>
<button <button
class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
type="button" type="button"
on:click={() => exportHandler('csv')} on:click={() => exportHandler('csv')}
> >
@@ -154,7 +154,7 @@
</div> </div>
<div <div
class="scrollbar-hidden relative whitespace-nowrap overflow-x-auto max-w-full rounded-sm min-h-[100px]" class="scrollbar-hidden relative whitespace-nowrap overflow-x-auto max-w-full rounded-sm min-h-[6.25rem]"
> >
{#if loading} {#if loading}
<div <div
+5 -5
View File
@@ -513,14 +513,14 @@
<div class="flex min-w-0 items-center gap-2 overflow-hidden"> <div class="flex min-w-0 items-center gap-2 overflow-hidden">
<div class="flex min-w-0 flex-1 items-center gap-2 overflow-hidden"> <div class="flex min-w-0 flex-1 items-center gap-2 overflow-hidden">
<div <div
class="shrink-0 rounded-sm bg-gray-500/20 px-1 text-[10px] uppercase leading-4 text-gray-700 dark:text-gray-200" class="shrink-0 rounded-sm bg-gray-500/20 px-1 text-[0.625rem] uppercase leading-4 text-gray-700 dark:text-gray-200"
> >
{func.type} {func.type}
</div> </div>
<Tooltip content={func.id} className="min-w-0" placement="top-start"> <Tooltip content={func.id} className="min-w-0" placement="top-start">
<div <div
class="truncate text-[13px] leading-5 text-gray-800 group-hover:underline dark:text-gray-200" class="truncate text-[0.8125rem] leading-5 text-gray-800 group-hover:underline dark:text-gray-200"
> >
{func.name} {func.name}
</div> </div>
@@ -528,7 +528,7 @@
{#if func?.meta?.manifest?.version} {#if func?.meta?.manifest?.version}
<div <div
class="min-w-0 max-w-[40%] shrink-0 truncate text-[11px] leading-5 text-gray-500" class="min-w-0 max-w-[40%] shrink-0 truncate text-[0.6875rem] leading-5 text-gray-500"
> >
v{func?.meta?.manifest?.version ?? ''} v{func?.meta?.manifest?.version ?? ''}
</div> </div>
@@ -536,7 +536,7 @@
<Tooltip content={dayjs(func.updated_at * 1000).format('LLLL')}> <Tooltip content={dayjs(func.updated_at * 1000).format('LLLL')}>
<div <div
class="shrink-0 truncate text-[11px] leading-5 text-gray-400 dark:text-gray-600" class="shrink-0 truncate text-[0.6875rem] leading-5 text-gray-400 dark:text-gray-600"
> >
{dayjs(func.updated_at * 1000).fromNow()} {dayjs(func.updated_at * 1000).fromNow()}
</div> </div>
@@ -561,7 +561,7 @@
</div> </div>
<div <div
class="hidden max-w-44 shrink-0 self-center truncate text-right text-[11px] leading-5 text-gray-500 dark:text-gray-500 md:block" class="hidden max-w-44 shrink-0 self-center truncate text-right text-[0.6875rem] leading-5 text-gray-500 dark:text-gray-500 md:block"
> >
<Tooltip <Tooltip
content={func?.user?.email ?? $i18n.t('Deleted User')} content={func?.user?.email ?? $i18n.t('Deleted User')}
@@ -31,9 +31,9 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[190px]"> <DropdownMenu className="min-w-[11.875rem]">
<button <button
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] 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] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={async () => { on:click={async () => {
createHandler(); createHandler();
show = false; show = false;
@@ -46,7 +46,7 @@
</button> </button>
<button <button
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] 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] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={async () => { on:click={async () => {
importFromLinkHandler(); importFromLinkHandler();
show = false; show = false;
@@ -434,7 +434,7 @@ class Pipe:
value={content} value={content}
lang="python" lang="python"
{boilerplate} {boilerplate}
className="text-[11px]" className="text-[0.6875rem]"
onChange={(e) => { onChange={(e) => {
_content = e; _content = e;
if (!edit) { if (!edit) {
@@ -45,10 +45,10 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[180px]"> <DropdownMenu className="min-w-[11.25rem]">
{#if ['filter', 'action'].includes(func.type)} {#if ['filter', 'action'].includes(func.type)}
<div <div
class="flex gap-2 justify-between items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl" class="flex gap-2 justify-between items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl"
> >
<div class="flex gap-2 items-center"> <div class="flex gap-2 items-center">
<GlobeAlt /> <GlobeAlt />
@@ -64,7 +64,7 @@
{/if} {/if}
<button <button
class="select-none flex gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl w-full" class="select-none flex gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl w-full"
on:click={() => { on:click={() => {
editHandler(); editHandler();
closeMenu(); closeMenu();
@@ -89,7 +89,7 @@
</button> </button>
<button <button
class="select-none flex gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl w-full" class="select-none flex gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl w-full"
on:click={() => { on:click={() => {
shareHandler(); shareHandler();
closeMenu(); closeMenu();
@@ -100,7 +100,7 @@
</button> </button>
<button <button
class="select-none flex gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl w-full" class="select-none flex gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl w-full"
on:click={() => { on:click={() => {
cloneHandler(); cloneHandler();
closeMenu(); closeMenu();
@@ -111,7 +111,7 @@
</button> </button>
<button <button
class="select-none flex gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl w-full" class="select-none flex gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl w-full"
on:click={() => { on:click={() => {
exportHandler(); exportHandler();
closeMenu(); closeMenu();
@@ -124,7 +124,7 @@
<hr class="border-gray-50 dark:border-gray-850/30 my-1" /> <hr class="border-gray-50 dark:border-gray-850/30 my-1" />
<button <button
class="select-none flex gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl w-full" class="select-none flex gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl w-full"
on:click={() => { on:click={() => {
deleteHandler(); deleteHandler();
closeMenu(); closeMenu();
+14 -14
View File
@@ -785,7 +785,7 @@
<Dropdown align="end"> <Dropdown align="end">
<Tooltip content={$i18n.t('Actions')}> <Tooltip content={$i18n.t('Actions')}>
<button <button
class="flex h-8 items-center gap-1.5 rounded-xl bg-transparent px-1.5 text-[13px] font-normal text-gray-700 transition hover:text-gray-900 dark:text-gray-200 dark:hover:text-gray-100" class="flex h-8 items-center gap-1.5 rounded-xl bg-transparent px-1.5 text-[0.8125rem] font-normal text-gray-700 transition hover:text-gray-900 dark:text-gray-200 dark:hover:text-gray-100"
type="button" type="button"
> >
<span>{$i18n.t('Actions')}</span> <span>{$i18n.t('Actions')}</span>
@@ -794,10 +794,10 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="w-[170px] shadow-sm"> <DropdownMenu className="w-[10.625rem] shadow-sm">
{#if $user?.role === 'admin'} {#if $user?.role === 'admin'}
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] disabled:pointer-events-none disabled:opacity-40 hover:text-gray-900 dark:hover:text-gray-100" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] disabled:pointer-events-none disabled:opacity-40 hover:text-gray-900 dark:hover:text-gray-100"
type="button" type="button"
disabled={modelsImportInProgress} disabled={modelsImportInProgress}
on:click={() => { on:click={() => {
@@ -809,7 +809,7 @@
</button> </button>
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
type="button" type="button"
on:click={() => { on:click={() => {
downloadModels(models ?? []); downloadModels(models ?? []);
@@ -821,7 +821,7 @@
{/if} {/if}
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
type="button" type="button"
on:click={() => { on:click={() => {
showManageModal = true; showManageModal = true;
@@ -832,7 +832,7 @@
</button> </button>
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
type="button" type="button"
on:click={() => { on:click={() => {
showResetModal = true; showResetModal = true;
@@ -845,7 +845,7 @@
<hr class="mx-1 my-0.5 border-gray-100 dark:border-gray-800" /> <hr class="mx-1 my-0.5 border-gray-100 dark:border-gray-800" />
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
type="button" type="button"
on:click={() => { on:click={() => {
enableAllHandler(); enableAllHandler();
@@ -856,7 +856,7 @@
</button> </button>
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
type="button" type="button"
on:click={() => { on:click={() => {
disableAllHandler(); disableAllHandler();
@@ -869,7 +869,7 @@
<hr class="mx-1 my-0.5 border-gray-100 dark:border-gray-800" /> <hr class="mx-1 my-0.5 border-gray-100 dark:border-gray-800" />
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
type="button" type="button"
on:click={() => { on:click={() => {
showAllHandler(); showAllHandler();
@@ -880,7 +880,7 @@
</button> </button>
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
type="button" type="button"
on:click={() => { on:click={() => {
hideAllHandler(); hideAllHandler();
@@ -973,12 +973,12 @@
placement="top-start" placement="top-start"
> >
<div <div
class="flex min-w-0 items-center gap-1.5 text-[13px] font-normal leading-4" class="flex min-w-0 items-center gap-1.5 text-[0.8125rem] font-normal leading-4"
> >
<span class="min-w-0 truncate">{model.name}</span> <span class="min-w-0 truncate">{model.name}</span>
<span <span
class="shrink-0 text-[11px] font-normal leading-4 {modelAccessClass( class="shrink-0 text-[0.6875rem] font-normal leading-4 {modelAccessClass(
model model
)}" )}"
> >
@@ -987,7 +987,7 @@
{#if defaultModelIdSet.has(model.id)} {#if defaultModelIdSet.has(model.id)}
<span <span
class="shrink-0 text-[11px] font-normal leading-4 text-gray-500 dark:text-gray-400" class="shrink-0 text-[0.6875rem] font-normal leading-4 text-gray-500 dark:text-gray-400"
> >
{$i18n.t('Selected')} {$i18n.t('Selected')}
</span> </span>
@@ -995,7 +995,7 @@
{#if defaultPinnedModelIdSet.has(model.id)} {#if defaultPinnedModelIdSet.has(model.id)}
<span <span
class="shrink-0 text-[11px] font-normal leading-4 text-gray-500 dark:text-gray-400" class="shrink-0 text-[0.6875rem] font-normal leading-4 text-gray-500 dark:text-gray-400"
> >
{$i18n.t('Pinned')} {$i18n.t('Pinned')}
</span> </span>
@@ -30,7 +30,7 @@
{items} {items}
{placeholder} {placeholder}
{align} {align}
triggerClass="relative h-8 w-full flex items-center gap-0.5 px-1.5 py-1.5 bg-transparent rounded-xl text-[13px] font-normal text-gray-700 transition hover:text-gray-900 dark:text-gray-200 dark:hover:text-gray-100" triggerClass="relative h-8 w-full flex items-center gap-0.5 px-1.5 py-1.5 bg-transparent rounded-xl text-[0.8125rem] font-normal text-gray-700 transition hover:text-gray-900 dark:text-gray-200 dark:hover:text-gray-100"
labelClass="inline-flex h-input w-full outline-hidden bg-transparent truncate placeholder-gray-400 focus:outline-hidden" labelClass="inline-flex h-input w-full outline-hidden bg-transparent truncate placeholder-gray-400 focus:outline-hidden"
onChange={() => onChange(value)} onChange={() => onChange(value)}
> >
@@ -65,9 +65,9 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[170px]"> <DropdownMenu className="min-w-[10.625rem]">
<button <button
class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
on:click={() => runAndClose(hideHandler)} on:click={() => runAndClose(hideHandler)}
> >
{#if model?.meta?.hidden ?? false} {#if model?.meta?.hidden ?? false}
@@ -117,7 +117,7 @@
</button> </button>
<button <button
class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
on:click={() => runAndClose(defaultSelectedHandler)} on:click={() => runAndClose(defaultSelectedHandler)}
> >
<Check className="size-3.5" /> <Check className="size-3.5" />
@@ -132,7 +132,7 @@
</button> </button>
<button <button
class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
on:click={() => runAndClose(defaultPinnedHandler)} on:click={() => runAndClose(defaultPinnedHandler)}
> >
{#if isDefaultPinned} {#if isDefaultPinned}
@@ -151,7 +151,7 @@
</button> </button>
<button <button
class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
on:click={() => runAndClose(privacyHandler)} on:click={() => runAndClose(privacyHandler)}
> >
{#if isPublicModel(model)} {#if isPublicModel(model)}
@@ -170,7 +170,7 @@
</button> </button>
<button <button
class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
on:click={() => runAndClose(() => pinModelHandler(model?.id))} on:click={() => runAndClose(() => pinModelHandler(model?.id))}
> >
{#if ($settings?.pinnedModels ?? []).includes(model?.id)} {#if ($settings?.pinnedModels ?? []).includes(model?.id)}
@@ -189,7 +189,7 @@
</button> </button>
<button <button
class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
on:click={() => runAndClose(copyLinkHandler)} on:click={() => runAndClose(copyLinkHandler)}
> >
<Link /> <Link />
@@ -199,7 +199,7 @@
{#if model?.is_active ?? true} {#if model?.is_active ?? true}
<button <button
class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
on:click={() => runAndClose(cloneHandler)} on:click={() => runAndClose(cloneHandler)}
> >
<DocumentDuplicate /> <DocumentDuplicate />
@@ -209,7 +209,7 @@
{/if} {/if}
<button <button
class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="select-none flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
on:click={() => runAndClose(exportHandler)} on:click={() => runAndClose(exportHandler)}
> >
<Download /> <Download />
+1 -1
View File
@@ -122,7 +122,7 @@
</a> </a>
</div> </div>
<div class="flex-1 px-3.5 lg:pr-[16px] lg:pl-0 overflow-y-scroll"> <div class="flex-1 px-3.5 lg:pr-[1rem] lg:pl-0 overflow-y-scroll">
{#if selectedTab === 'overview'} {#if selectedTab === 'overview'}
<UserList /> <UserList />
{:else if selectedTab === 'groups'} {:else if selectedTab === 'groups'}
+1 -1
View File
@@ -142,7 +142,7 @@
bind:value={sortBy} bind:value={sortBy}
items={sortItems} items={sortItems}
placeholder={$i18n.t('Sort')} placeholder={$i18n.t('Sort')}
triggerClass="relative h-8 shrink-0 flex items-center gap-1 px-1.5 py-1.5 bg-transparent rounded-xl text-[13px] font-normal text-gray-700 transition hover:text-gray-900 dark:text-gray-200 dark:hover:text-gray-100" triggerClass="relative h-8 shrink-0 flex items-center gap-1 px-1.5 py-1.5 bg-transparent rounded-xl text-[0.8125rem] font-normal text-gray-700 transition hover:text-gray-900 dark:text-gray-200 dark:hover:text-gray-100"
labelClass="inline-flex h-input outline-hidden bg-transparent truncate placeholder-gray-400 focus:outline-hidden" labelClass="inline-flex h-input outline-hidden bg-transparent truncate placeholder-gray-400 focus:outline-hidden"
align="end" align="end"
> >
@@ -83,7 +83,7 @@
</div> </div>
<div <div
class="shrink-0 rounded-md bg-gray-500/10 px-1.5 py-0.5 text-[11px] font-normal leading-none text-gray-600 dark:text-gray-300" class="shrink-0 rounded-md bg-gray-500/10 px-1.5 py-0.5 text-[0.6875rem] font-normal leading-none text-gray-600 dark:text-gray-300"
> >
{$i18n.t('{{COUNT}} members', { COUNT: group?.member_count ?? 0 })} {$i18n.t('{{COUNT}} members', { COUNT: group?.member_count ?? 0 })}
</div> </div>
@@ -257,7 +257,7 @@
<div class="h-full overflow-y-auto scrollbar-hidden"> <div class="h-full overflow-y-auto scrollbar-hidden">
<div class="pb-1 px-1"> <div class="pb-1 px-1">
<div class="flex h-7 items-center px-3"> <div class="flex h-7 items-center px-3">
<span class="w-24 shrink-0 text-[11px] text-gray-400 dark:text-gray-500"> <span class="w-24 shrink-0 text-[0.6875rem] text-gray-400 dark:text-gray-500">
{$i18n.t('Status')} {$i18n.t('Status')}
</span> </span>
<span <span
@@ -273,7 +273,7 @@
</div> </div>
<div class="flex h-7 items-center px-3"> <div class="flex h-7 items-center px-3">
<span class="w-24 shrink-0 text-[11px] text-gray-400 dark:text-gray-500"> <span class="w-24 shrink-0 text-[0.6875rem] text-gray-400 dark:text-gray-500">
{$i18n.t('Schedule')} {$i18n.t('Schedule')}
</span> </span>
<span class="min-w-0 truncate text-xs text-gray-700 dark:text-gray-300"> <span class="min-w-0 truncate text-xs text-gray-700 dark:text-gray-300">
@@ -282,7 +282,7 @@
</div> </div>
<div class="flex h-7 items-center px-3"> <div class="flex h-7 items-center px-3">
<span class="w-24 shrink-0 text-[11px] text-gray-400 dark:text-gray-500"> <span class="w-24 shrink-0 text-[0.6875rem] text-gray-400 dark:text-gray-500">
{$i18n.t('Folder')} {$i18n.t('Folder')}
</span> </span>
<span class="min-w-0 truncate text-xs text-gray-700 dark:text-gray-300"> <span class="min-w-0 truncate text-xs text-gray-700 dark:text-gray-300">
@@ -291,7 +291,7 @@
</div> </div>
<div class="flex h-7 items-center px-3"> <div class="flex h-7 items-center px-3">
<span class="w-24 shrink-0 text-[11px] text-gray-400 dark:text-gray-500"> <span class="w-24 shrink-0 text-[0.6875rem] text-gray-400 dark:text-gray-500">
{$i18n.t('Model')} {$i18n.t('Model')}
</span> </span>
<span class="min-w-0 truncate text-xs text-gray-700 dark:text-gray-300"> <span class="min-w-0 truncate text-xs text-gray-700 dark:text-gray-300">
@@ -300,7 +300,7 @@
</div> </div>
<div class="flex h-7 items-center px-3"> <div class="flex h-7 items-center px-3">
<span class="w-24 shrink-0 text-[11px] text-gray-400 dark:text-gray-500"> <span class="w-24 shrink-0 text-[0.6875rem] text-gray-400 dark:text-gray-500">
{$i18n.t('Next run')} {$i18n.t('Next run')}
</span> </span>
<span class="min-w-0 truncate text-xs text-gray-700 dark:text-gray-300"> <span class="min-w-0 truncate text-xs text-gray-700 dark:text-gray-300">
@@ -309,7 +309,7 @@
</div> </div>
<div class="flex h-7 items-center px-3"> <div class="flex h-7 items-center px-3">
<span class="w-24 shrink-0 text-[11px] text-gray-400 dark:text-gray-500"> <span class="w-24 shrink-0 text-[0.6875rem] text-gray-400 dark:text-gray-500">
{$i18n.t('Last run')} {$i18n.t('Last run')}
</span> </span>
<span class="min-w-0 truncate text-xs text-gray-700 dark:text-gray-300"> <span class="min-w-0 truncate text-xs text-gray-700 dark:text-gray-300">
@@ -321,7 +321,7 @@
<hr class="my-1.5 border-gray-50/60 dark:border-gray-850/25" /> <hr class="my-1.5 border-gray-50/60 dark:border-gray-850/25" />
<div class="px-4 py-2"> <div class="px-4 py-2">
<div class="mb-2 text-[11px] text-gray-400 dark:text-gray-500">{$i18n.t('Prompt')}</div> <div class="mb-2 text-[0.6875rem] text-gray-400 dark:text-gray-500">{$i18n.t('Prompt')}</div>
<div <div
class="whitespace-pre-wrap font-mono text-xs leading-relaxed text-gray-700 dark:text-gray-300" class="whitespace-pre-wrap font-mono text-xs leading-relaxed text-gray-700 dark:text-gray-300"
> >
@@ -332,14 +332,14 @@
<hr class="my-1.5 border-gray-50/60 dark:border-gray-850/25" /> <hr class="my-1.5 border-gray-50/60 dark:border-gray-850/25" />
<div class="px-4 py-2"> <div class="px-4 py-2">
<div class="mb-1 text-[11px] text-gray-400 dark:text-gray-500">{$i18n.t('Runs')}</div> <div class="mb-1 text-[0.6875rem] text-gray-400 dark:text-gray-500">{$i18n.t('Runs')}</div>
<div class="overflow-y-auto scrollbar-hidden" on:scroll={onScroll}> <div class="overflow-y-auto scrollbar-hidden" on:scroll={onScroll}>
{#if runsLoading && runs.length === 0} {#if runsLoading && runs.length === 0}
<div class="flex justify-center py-8"> <div class="flex justify-center py-8">
<Spinner className="size-4" /> <Spinner className="size-4" />
</div> </div>
{:else if runs.length === 0} {:else if runs.length === 0}
<div class="py-2 text-[11px] text-gray-400 dark:text-gray-600"> <div class="py-2 text-[0.6875rem] text-gray-400 dark:text-gray-600">
{$i18n.t('No runs yet')} {$i18n.t('No runs yet')}
</div> </div>
{:else} {:else}
@@ -31,9 +31,9 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[170px]"> <DropdownMenu className="min-w-[10.625rem]">
<button <button
class="select-none flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="select-none flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
draggable="false" draggable="false"
on:click={() => { on:click={() => {
editHandler(); editHandler();
@@ -59,7 +59,7 @@
</button> </button>
<button <button
class="select-none flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="select-none flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
draggable="false" draggable="false"
on:click={() => { on:click={() => {
cloneHandler(); cloneHandler();
@@ -71,7 +71,7 @@
</button> </button>
<button <button
class="select-none flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="select-none flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
draggable="false" draggable="false"
on:click={() => { on:click={() => {
runHandler(); runHandler();
@@ -99,7 +99,7 @@
<hr class="border-gray-50 dark:border-gray-850/30 mx-1 my-0.5" /> <hr class="border-gray-50 dark:border-gray-850/30 mx-1 my-0.5" />
<button <button
class="select-none flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100" class="select-none flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:text-gray-900 dark:hover:text-gray-100"
draggable="false" draggable="false"
on:click={() => { on:click={() => {
deleteHandler(); deleteHandler();
@@ -95,7 +95,7 @@
<Search className="size-3.5 shrink-0" strokeWidth="2.5" /> <Search className="size-3.5 shrink-0" strokeWidth="2.5" />
<input <input
bind:value={folderSearch} bind:value={folderSearch}
class="w-full bg-transparent text-[13px] outline-hidden" class="w-full bg-transparent text-[0.8125rem] outline-hidden"
placeholder={$i18n.t('Search folders')} placeholder={$i18n.t('Search folders')}
autocomplete="off" autocomplete="off"
on:click|stopPropagation on:click|stopPropagation
@@ -104,7 +104,7 @@
{#if folderOptions.length > 0} {#if folderOptions.length > 0}
<hr class="mx-1 my-0.5 border-gray-50/30 dark:border-gray-800/30" /> <hr class="mx-1 my-0.5 border-gray-50/30 dark:border-gray-800/30" />
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{$i18n.t('Folders')} {$i18n.t('Folders')}
</div> </div>
{/if} {/if}
@@ -113,7 +113,7 @@
{@const path = folderPath(folder)} {@const path = folderPath(folder)}
<button <button
type="button" type="button"
class="flex h-[1.6875rem] w-full cursor-pointer items-center justify-between gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100 {folder_id === class="flex h-[1.6875rem] w-full cursor-pointer items-center justify-between gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100 {folder_id ===
folder.id folder.id
? 'text-gray-900 dark:text-gray-100' ? 'text-gray-900 dark:text-gray-100'
: 'text-gray-700 dark:text-gray-300'}" : 'text-gray-700 dark:text-gray-300'}"
@@ -130,7 +130,7 @@
<Folder className="size-3.5 shrink-0" /> <Folder className="size-3.5 shrink-0" />
<span class="min-w-0 truncate">{folderName(folder)}</span> <span class="min-w-0 truncate">{folderName(folder)}</span>
{#if path} {#if path}
<span class="min-w-0 truncate text-[11px] text-gray-400 dark:text-gray-500"> <span class="min-w-0 truncate text-[0.6875rem] text-gray-400 dark:text-gray-500">
{path} {path}
</span> </span>
{/if} {/if}
@@ -140,7 +140,7 @@
{/if} {/if}
</button> </button>
{:else} {:else}
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{folderOptions.length > 0 ? $i18n.t('No results found') : $i18n.t('No folders')} {folderOptions.length > 0 ? $i18n.t('No results found') : $i18n.t('No folders')}
</div> </div>
{/each} {/each}
@@ -76,7 +76,7 @@
<Search className="size-3.5" strokeWidth="2.5" /> <Search className="size-3.5" strokeWidth="2.5" />
<input <input
bind:value={modelSearch} bind:value={modelSearch}
class="w-full text-[13px] bg-transparent outline-hidden" class="w-full text-[0.8125rem] bg-transparent outline-hidden"
placeholder={$i18n.t('Search a model')} placeholder={$i18n.t('Search a model')}
autocomplete="off" autocomplete="off"
on:click={(e) => e.stopPropagation()} on:click={(e) => e.stopPropagation()}
@@ -84,13 +84,13 @@
</div> </div>
<div class="overflow-y-auto scrollbar-thin max-h-60"> <div class="overflow-y-auto scrollbar-thin max-h-60">
<div class="px-2 text-[11px] text-gray-500 py-0.5"> <div class="px-2 text-[0.6875rem] text-gray-500 py-0.5">
{$i18n.t('Models')} {$i18n.t('Models')}
</div> </div>
{#each filteredModels as model (model.id)} {#each filteredModels as model (model.id)}
<button <button
class="h-[1.6875rem] px-2 rounded-xl w-full text-left text-[13px] {model_id === model.id class="h-[1.6875rem] px-2 rounded-xl w-full text-left text-[0.8125rem] {model_id === model.id
? 'text-gray-900 dark:text-gray-100' ? 'text-gray-900 dark:text-gray-100'
: 'text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-gray-100'}" : 'text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-gray-100'}"
type="button" type="button"
@@ -120,7 +120,7 @@
</div> </div>
</button> </button>
{:else} {:else}
<div class="block px-2 py-1.5 text-[13px] text-gray-700 dark:text-gray-100"> <div class="block px-2 py-1.5 text-[0.8125rem] text-gray-700 dark:text-gray-100">
{$i18n.t('No results found')} {$i18n.t('No results found')}
</div> </div>
{/each} {/each}
@@ -194,13 +194,13 @@
slot="content" slot="content"
class="rounded-xl shadow-lg border border-gray-200 dark:border-gray-800 flex flex-col bg-white dark:bg-gray-850 w-48 p-0.5" class="rounded-xl shadow-lg border border-gray-200 dark:border-gray-800 flex flex-col bg-white dark:bg-gray-850 w-48 p-0.5"
> >
<div class="px-2 text-[11px] text-gray-500 pt-0.5"> <div class="px-2 text-[0.6875rem] text-gray-500 pt-0.5">
{$i18n.t('Schedule')} {$i18n.t('Schedule')}
</div> </div>
<div class="px-1.5 py-0.5"> <div class="px-1.5 py-0.5">
<select <select
class="w-full h-[1.6875rem] bg-transparent rounded-xl text-[13px] px-1.5 outline-hidden" class="w-full h-[1.6875rem] bg-transparent rounded-xl text-[0.8125rem] px-1.5 outline-hidden"
bind:value={frequency} bind:value={frequency}
on:click={(e) => e.stopPropagation()} on:click={(e) => e.stopPropagation()}
on:change={onChange} on:change={onChange}
@@ -217,13 +217,13 @@
type="text" type="text"
bind:value={customRrule} bind:value={customRrule}
placeholder="RRULE:FREQ=DAILY;BYHOUR=9;BYMINUTE=0" placeholder="RRULE:FREQ=DAILY;BYHOUR=9;BYMINUTE=0"
class="w-full bg-transparent outline-hidden text-[13px] placeholder:text-gray-400 dark:placeholder:text-gray-600" class="w-full bg-transparent outline-hidden text-[0.8125rem] placeholder:text-gray-400 dark:placeholder:text-gray-600"
on:click={(e) => e.stopPropagation()} on:click={(e) => e.stopPropagation()}
on:input={onChange} on:input={onChange}
/> />
</div> </div>
{:else if frequency !== 'HOURLY'} {:else if frequency !== 'HOURLY'}
<div class="flex gap-2 flex-wrap items-center px-3 pb-2 text-[13px]"> <div class="flex gap-2 flex-wrap items-center px-3 pb-2 text-[0.8125rem]">
{#if frequency === 'ONCE'} {#if frequency === 'ONCE'}
<div class="flex items-center gap-1.5"> <div class="flex items-center gap-1.5">
<input <input
@@ -51,13 +51,13 @@
slot="content" slot="content"
class="rounded-xl shadow-lg border border-gray-200 dark:border-gray-800 flex flex-col bg-white dark:bg-gray-850 min-w-56 max-w-56 p-0.5" class="rounded-xl shadow-lg border border-gray-200 dark:border-gray-800 flex flex-col bg-white dark:bg-gray-850 min-w-56 max-w-56 p-0.5"
> >
<div class="px-2 text-[11px] text-gray-500 py-0.5"> <div class="px-2 text-[0.6875rem] text-gray-500 py-0.5">
{$i18n.t('Terminal')} {$i18n.t('Terminal')}
</div> </div>
{#each terminalServers as server (server.id)} {#each terminalServers as server (server.id)}
<button <button
class="flex w-full h-[1.6875rem] justify-between gap-2 items-center px-2 text-[13px] cursor-pointer rounded-xl {terminalServerId === class="flex w-full h-[1.6875rem] justify-between gap-2 items-center px-2 text-[0.8125rem] cursor-pointer rounded-xl {terminalServerId ===
server.id server.id
? 'text-gray-900 dark:text-gray-100' ? 'text-gray-900 dark:text-gray-100'
: 'text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-gray-100'}" : 'text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-gray-100'}"
@@ -98,7 +98,7 @@
{#if terminalServerId} {#if terminalServerId}
<div class="border-t border-gray-100 dark:border-gray-800 mt-1 pt-1"> <div class="border-t border-gray-100 dark:border-gray-800 mt-1 pt-1">
<div class="px-2 py-0.5 text-[11px] text-gray-500"> <div class="px-2 py-0.5 text-[0.6875rem] text-gray-500">
{$i18n.t('Working Directory')} {$i18n.t('Working Directory')}
</div> </div>
<div class="px-2"> <div class="px-2">
@@ -106,7 +106,7 @@
type="text" type="text"
bind:value={terminalCwd} bind:value={terminalCwd}
placeholder="/home/user/project" placeholder="/home/user/project"
class="w-full bg-transparent outline-hidden text-[13px] py-1 placeholder:text-gray-400 dark:placeholder:text-gray-600" class="w-full bg-transparent outline-hidden text-[0.8125rem] py-1 placeholder:text-gray-400 dark:placeholder:text-gray-600"
on:click={(e) => e.stopPropagation()} on:click={(e) => e.stopPropagation()}
on:input={onChange} on:input={onChange}
/> />
@@ -11,13 +11,13 @@
<Tooltip content="{event.title}{event.location ? ` · ${event.location}` : ''}"> <Tooltip content="{event.title}{event.location ? ` · ${event.location}` : ''}">
<button <button
class="w-full text-left text-xs flex items-start gap-1.5 py-[1px] px-0.5 rounded-md class="w-full text-left text-xs flex items-start gap-1.5 py-[0.0625rem] px-0.5 rounded-md
{event.meta?.automation_id ? 'opacity-60' : ''} {event.meta?.automation_id ? 'opacity-60' : ''}
hover:bg-gray-50 dark:hover:bg-gray-800/50 transition truncate" hover:bg-gray-50 dark:hover:bg-gray-800/50 transition truncate"
on:click|stopPropagation={() => dispatch('click', event)} on:click|stopPropagation={() => dispatch('click', event)}
> >
<span <span
class="shrink-0 size-[7px] rounded-full mt-[5px]" class="shrink-0 size-[0.4375rem] rounded-full mt-[0.3125rem]"
style="background-color: {event.color || calendarColor || '#3b82f6'};" style="background-color: {event.color || calendarColor || '#3b82f6'};"
></span> ></span>
<span class="truncate"> <span class="truncate">
@@ -106,7 +106,7 @@
<!-- Mini Month Calendar --> <!-- Mini Month Calendar -->
<div> <div>
<div class="flex items-center justify-between px-1 mb-1.5 mt-1.5"> <div class="flex items-center justify-between px-1 mb-1.5 mt-1.5">
<div class="text-[11px] font-normal">{miniMonthNames[miniMonth]} {miniYear}</div> <div class="text-[0.6875rem] font-normal">{miniMonthNames[miniMonth]} {miniYear}</div>
<div class="flex items-center gap-0.5"> <div class="flex items-center gap-0.5">
<button <button
class="p-0.5 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition" class="p-0.5 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition"
@@ -149,13 +149,13 @@
</div> </div>
</div> </div>
<div class="grid grid-cols-7 text-center text-[9px] text-gray-400 dark:text-gray-500 mb-0.5"> <div class="grid grid-cols-7 text-center text-[0.5625rem] text-gray-400 dark:text-gray-500 mb-0.5">
{#each ['S', 'M', 'T', 'W', 'T', 'F', 'S'] as d} {#each ['S', 'M', 'T', 'W', 'T', 'F', 'S'] as d}
<div class="py-0.5">{d}</div> <div class="py-0.5">{d}</div>
{/each} {/each}
</div> </div>
<div class="grid grid-cols-7 text-center text-[10px]"> <div class="grid grid-cols-7 text-center text-[0.625rem]">
{#each miniDays as day} {#each miniDays as day}
<button <button
class="w-6 h-6 flex items-center justify-center rounded-full transition class="w-6 h-6 flex items-center justify-center rounded-full transition
@@ -178,7 +178,7 @@
<!-- Calendar List --> <!-- Calendar List -->
<div> <div>
<div class="flex items-center justify-between mb-1 px-1"> <div class="flex items-center justify-between mb-1 px-1">
<div class="text-[11px] text-gray-400 dark:text-gray-500 uppercase tracking-wider"> <div class="text-[0.6875rem] text-gray-400 dark:text-gray-500 uppercase tracking-wider">
{$i18n.t('Calendars')} {$i18n.t('Calendars')}
</div> </div>
<button <button
@@ -188,7 +188,7 @@
{#if dayEvents.length > 3} {#if dayEvents.length > 3}
<!-- svelte-ignore a11y-click-events-have-key-events --><!-- svelte-ignore a11y-no-static-element-interactions --> <!-- svelte-ignore a11y-click-events-have-key-events --><!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
class="text-[10px] text-gray-400 dark:text-gray-500 px-1 mt-auto hover:text-gray-700 dark:hover:text-gray-200 text-left w-full truncate z-10" class="text-[0.625rem] text-gray-400 dark:text-gray-500 px-1 mt-auto hover:text-gray-700 dark:hover:text-gray-200 text-left w-full truncate z-10"
on:click|stopPropagation={() => goToDayView(day)} on:click|stopPropagation={() => goToDayView(day)}
> >
+{dayEvents.length - 3} more +{dayEvents.length - 3} more
@@ -207,7 +207,7 @@
class="flex-1 rounded-2xl bg-white dark:bg-gray-900 border border-gray-100/30 dark:border-gray-850/30 overflow-hidden relative" class="flex-1 rounded-2xl bg-white dark:bg-gray-900 border border-gray-100/30 dark:border-gray-850/30 overflow-hidden relative"
> >
<div class="absolute inset-0 overflow-x-auto flex flex-col"> <div class="absolute inset-0 overflow-x-auto flex flex-col">
<div class="min-w-[700px] flex flex-col flex-1"> <div class="min-w-[43.75rem] flex flex-col flex-1">
<div <div
class="grid grid-cols-[52px_repeat(7,1fr)] shrink-0 border-b border-gray-100/30 dark:border-gray-850/30" class="grid grid-cols-[52px_repeat(7,1fr)] shrink-0 border-b border-gray-100/30 dark:border-gray-850/30"
> >
@@ -218,7 +218,7 @@
? 'border-l border-gray-100/20 dark:border-gray-850/20' ? 'border-l border-gray-100/20 dark:border-gray-850/20'
: ''}" : ''}"
> >
<div class="text-[11px] text-gray-400 dark:text-gray-500"> <div class="text-[0.6875rem] text-gray-400 dark:text-gray-500">
{DAY_NAMES[day.getDay()]} {DAY_NAMES[day.getDay()]}
</div> </div>
<div <div
@@ -237,12 +237,12 @@
<div class="flex-1 overflow-y-auto"> <div class="flex-1 overflow-y-auto">
{#each hours as hour} {#each hours as hour}
<div <div
class="grid grid-cols-[52px_repeat(7,1fr)] min-h-[52px] {hour > 0 class="grid grid-cols-[52px_repeat(7,1fr)] min-h-[3.25rem] {hour > 0
? 'border-t border-gray-100/15 dark:border-gray-850/15' ? 'border-t border-gray-100/15 dark:border-gray-850/15'
: ''}" : ''}"
> >
<div <div
class="text-[10px] text-gray-400 dark:text-gray-500 text-right pr-2 select-none -mt-1.5 z-10" class="text-[0.625rem] text-gray-400 dark:text-gray-500 text-right pr-2 select-none -mt-1.5 z-10"
> >
{hour > 0 ? formatHour(hour) : ''} {hour > 0 ? formatHour(hour) : ''}
</div> </div>
@@ -265,7 +265,7 @@
{#if hourEvents.length > 3} {#if hourEvents.length > 3}
<!-- svelte-ignore a11y-click-events-have-key-events --><!-- svelte-ignore a11y-no-static-element-interactions --> <!-- svelte-ignore a11y-click-events-have-key-events --><!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
class="text-[10px] text-gray-400 dark:text-gray-500 px-1 mt-auto hover:text-gray-700 dark:hover:text-gray-200 text-left w-full truncate z-10" class="text-[0.625rem] text-gray-400 dark:text-gray-500 px-1 mt-auto hover:text-gray-700 dark:hover:text-gray-200 text-left w-full truncate z-10"
on:click|stopPropagation={() => goToDayView(day)} on:click|stopPropagation={() => goToDayView(day)}
> >
+{hourEvents.length - 3} more +{hourEvents.length - 3} more
@@ -291,12 +291,12 @@
{#each hours as hour} {#each hours as hour}
{@const hourEvents = getEventsForHour(currentDate, hour, filteredEvents)} {@const hourEvents = getEventsForHour(currentDate, hour, filteredEvents)}
<div <div
class="flex min-h-[52px] {hour > 0 class="flex min-h-[3.25rem] {hour > 0
? 'border-t border-gray-100/15 dark:border-gray-850/15' ? 'border-t border-gray-100/15 dark:border-gray-850/15'
: ''}" : ''}"
> >
<div <div
class="w-14 shrink-0 text-[10px] text-gray-400 dark:text-gray-500 text-right pr-3 mt-1 select-none" class="w-14 shrink-0 text-[0.625rem] text-gray-400 dark:text-gray-500 text-right pr-3 mt-1 select-none"
> >
{formatHour(hour)} {formatHour(hour)}
</div> </div>
@@ -809,7 +809,7 @@
{#if replyToMessage !== null} {#if replyToMessage !== null}
<div class="px-3 pt-3 text-left w-full flex flex-col z-10"> <div class="px-3 pt-3 text-left w-full flex flex-col z-10">
<div class="flex items-center justify-between w-full"> <div class="flex items-center justify-between w-full">
<div class="pl-[1px] flex items-center gap-2 text-sm"> <div class="pl-[0.0625rem] flex items-center gap-2 text-sm">
<div class="translate-y-[0.5px]"> <div class="translate-y-[0.5px]">
<span class="" <span class=""
>{$i18n.t('Replying to {{NAME}}', { >{$i18n.t('Replying to {{NAME}}', {
@@ -1014,12 +1014,12 @@
</slot> </slot>
</div> </div>
<div class="self-end flex space-x-1 mr-1 shrink-0 gap-[0.5px]"> <div class="self-end flex space-x-1 mr-1 shrink-0 gap-[0.03125rem]">
{#if content === ''} {#if content === ''}
<Tooltip content={$i18n.t('Record voice')}> <Tooltip content={$i18n.t('Record voice')}>
<button <button
id="voice-input-button" id="voice-input-button"
class=" text-gray-600 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-200 transition rounded-full p-[5px] mr-0.5 self-center" class=" text-gray-600 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-200 transition rounded-full p-[0.3125rem] mr-0.5 self-center"
type="button" type="button"
on:click={async () => { on:click={async () => {
try { try {
@@ -1070,7 +1070,7 @@
<Tooltip content={$i18n.t('Stop')}> <Tooltip content={$i18n.t('Stop')}>
<button <button
aria-label={$i18n.t('Stop')} aria-label={$i18n.t('Stop')}
class="bg-white hover:bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-800 transition rounded-full p-[5px]" class="bg-white hover:bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-800 transition rounded-full p-[0.3125rem]"
on:click={() => { on:click={() => {
onStop(); onStop();
}} }}
@@ -1098,7 +1098,7 @@
aria-label={$i18n.t('Send message')} aria-label={$i18n.t('Send message')}
class="{content !== '' || files.length !== 0 class="{content !== '' || files.length !== 0
? 'bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 ' ? 'bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 '
: 'text-white bg-gray-200 dark:text-gray-900 dark:bg-gray-700 disabled'} transition rounded-full p-[5px] self-center" : 'text-white bg-gray-200 dark:text-gray-900 dark:bg-gray-700 disabled'} transition rounded-full p-[0.3125rem] self-center"
type="submit" type="submit"
disabled={content === '' && files.length === 0} disabled={content === '' && files.length === 0}
> >
@@ -44,9 +44,9 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="w-[200px] z-999 transition"> <DropdownMenu className="w-[12.5rem] z-999 transition">
<button <button
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
type="button" type="button"
on:click={() => { on:click={() => {
uploadFilesHandler(); uploadFilesHandler();
@@ -58,7 +58,7 @@
</button> </button>
<button <button
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
type="button" type="button"
on:click={() => { on:click={() => {
screenCaptureHandler(); screenCaptureHandler();
@@ -188,7 +188,7 @@
{#if isPublicChannel(item?.data)} {#if isPublicChannel(item?.data)}
<Hashtag className="size-3" strokeWidth="2.5" /> <Hashtag className="size-3" strokeWidth="2.5" />
{:else} {:else}
<Lock className="size-[15px]" strokeWidth="2" /> <Lock className="size-[0.9375rem]" strokeWidth="2" />
{/if} {/if}
</div> </div>
{:else if item.type === 'model'} {:else if item.type === 'model'}
+1 -1
View File
@@ -77,7 +77,7 @@
{#if channel} {#if channel}
<div class="flex flex-col gap-1.5 pb-5 pt-10"> <div class="flex flex-col gap-1.5 pb-5 pt-10">
{#if channel?.type === 'dm'} {#if channel?.type === 'dm'}
<div class="flex ml-[1px] mr-0.5"> <div class="flex ml-[0.0625rem] mr-0.5">
{#each channel.users.filter((u) => u.id !== $user?.id).slice(0, 2) as u, index} {#each channel.users.filter((u) => u.id !== $user?.id).slice(0, 2) as u, index}
<img <img
src={`${WEBUI_API_BASE_URL}/users/${u.id}/profile/image`} src={`${WEBUI_API_BASE_URL}/users/${u.id}/profile/image`}
@@ -319,7 +319,7 @@
{#if message?.reply_to_message?.user} {#if message?.reply_to_message?.user}
<div class="relative text-xs mb-1"> <div class="relative text-xs mb-1">
<div <div
class="absolute h-3 w-7 left-[18px] top-2 rounded-tl-lg border-t-[1.5px] border-l-[1.5px] border-gray-200 dark:border-gray-700 z-0" class="absolute h-3 w-7 left-[1.125rem] top-2 rounded-tl-lg border-t-[1.5px] border-l-[1.5px] border-gray-200 dark:border-gray-700 z-0"
></div> ></div>
<button <button
@@ -555,7 +555,7 @@
allowEmbeds={!!message?.meta?.model_id} allowEmbeds={!!message?.meta?.model_id}
/> />
</span>{#if message.created_at !== message.updated_at && (message?.meta?.model_id ?? null) === null}<span </span>{#if message.created_at !== message.updated_at && (message?.meta?.model_id ?? null) === null}<span
class="text-gray-500 text-[10px] pl-1 self-center">({$i18n.t('edited')})</span class="text-gray-500 text-[0.625rem] pl-1 self-center">({$i18n.t('edited')})</span
>{/if} >{/if}
{/if} {/if}
</div> </div>
@@ -690,7 +690,7 @@
.swipe-reply-indicator { .swipe-reply-indicator {
position: absolute; position: absolute;
left: 8px; left: 0.5rem;
top: 0; top: 0;
bottom: 0; bottom: 0;
display: flex; display: flex;
@@ -704,8 +704,8 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 32px; width: 2rem;
height: 32px; height: 2rem;
border-radius: 50%; border-radius: 50%;
background-color: rgba(128, 128, 128, 0.15); background-color: rgba(128, 128, 128, 0.15);
color: rgba(128, 128, 128, 0.8); color: rgba(128, 128, 128, 0.8);
@@ -41,7 +41,7 @@
{#if user} {#if user}
<LinkPreview.Portal> <LinkPreview.Portal>
<LinkPreview.Content <LinkPreview.Content
class="w-[260px] rounded-2xl border border-gray-100 dark:border-gray-800 z-[9999] bg-white dark:bg-gray-850 dark:text-white shadow-lg transition" class="w-[16.25rem] rounded-2xl border border-gray-100 dark:border-gray-800 z-[9999] bg-white dark:bg-gray-850 dark:text-white shadow-lg transition"
{side} {side}
{align} {align}
{sideOffset} {sideOffset}
+2 -2
View File
@@ -4171,14 +4171,14 @@
{#if suggestedPrompts.length > 0} {#if suggestedPrompts.length > 0}
<div class="flex flex-1 items-end px-5 pb-8"> <div class="flex flex-1 items-end px-5 pb-8">
<div class="w-full"> <div class="w-full">
<div class="mb-2 text-[12px] text-gray-300 dark:text-gray-700"> <div class="mb-2 text-[0.75rem] text-gray-300 dark:text-gray-700">
{$i18n.t('Suggested prompts')} {$i18n.t('Suggested prompts')}
</div> </div>
<div class="flex flex-col"> <div class="flex flex-col">
{#each suggestedPrompts as suggestion} {#each suggestedPrompts as suggestion}
<button <button
type="button" type="button"
class="flex min-h-8 w-full items-center justify-between py-1 text-left text-[13px] leading-5 text-gray-500 transition hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300" class="flex min-h-8 w-full items-center justify-between py-1 text-left text-[0.8125rem] leading-5 text-gray-500 transition hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300"
on:click={async () => { on:click={async () => {
await tick(); await tick();
await submitHandler(withSelectedText(suggestion)); await submitHandler(withSelectedText(suggestion));
@@ -95,7 +95,7 @@
{#each actions as action} {#each actions as action}
<button <button
aria-label={action.label} aria-label={action.label}
class="px-1.5 py-[1px] hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl flex items-center gap-1 min-w-fit transition" class="px-1.5 py-[0.0625rem] hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl flex items-center gap-1 min-w-fit transition"
on:click={async () => { on:click={async () => {
selectedText = window.getSelection().toString(); selectedText = window.getSelection().toString();
selectedAction = action; selectedAction = action;
@@ -35,7 +35,7 @@
> >
<button <button
type="button" type="button"
class="group flex min-w-0 items-center gap-1 text-[13px] font-normal text-gray-600 transition hover:text-gray-900 dark:text-gray-300 dark:hover:text-white" class="group flex min-w-0 items-center gap-1 text-[0.8125rem] font-normal text-gray-600 transition hover:text-gray-900 dark:text-gray-300 dark:hover:text-white"
aria-label={$i18n.t('Chat history')} aria-label={$i18n.t('Chat history')}
> >
<span class="min-w-0 truncate">{title}</span> <span class="min-w-0 truncate">{title}</span>
@@ -92,7 +92,7 @@
/> />
{/each} {/each}
{:else} {:else}
<div class="px-2 py-1.5 text-[13px] text-gray-400 dark:text-gray-500"> <div class="px-2 py-1.5 text-[0.8125rem] text-gray-400 dark:text-gray-500">
{$i18n.t('No chat history')} {$i18n.t('No chat history')}
</div> </div>
{/if} {/if}
@@ -22,7 +22,7 @@
</script> </script>
<div <div
class="group/item flex h-[1.6875rem] w-full cursor-pointer select-none items-center rounded-xl px-2 text-left text-[13px] font-normal text-gray-700 outline-hidden transition-colors duration-75 hover:bg-gray-50/40 dark:text-gray-100 dark:hover:bg-gray-800/40 [&_button:hover]:bg-transparent! dark:[&_button:hover]:bg-transparent! {selected class="group/item flex h-[1.6875rem] w-full cursor-pointer select-none items-center rounded-xl px-2 text-left text-[0.8125rem] font-normal text-gray-700 outline-hidden transition-colors duration-75 hover:bg-gray-50/40 dark:text-gray-100 dark:hover:bg-gray-800/40 [&_button:hover]:bg-transparent! dark:[&_button:hover]:bg-transparent! {selected
? 'bg-gray-50/70 dark:bg-gray-800/60' ? 'bg-gray-50/70 dark:bg-gray-800/60'
: ''}" : ''}"
> >
@@ -34,7 +34,7 @@
<div class="min-w-0 truncate">{title}</div> <div class="min-w-0 truncate">{title}</div>
{#if selected} {#if selected}
<div class="shrink-0 text-[11px] text-gray-400 dark:text-gray-500"> <div class="shrink-0 text-[0.6875rem] text-gray-400 dark:text-gray-500">
{$i18n.t('Current')} {$i18n.t('Current')}
</div> </div>
{/if} {/if}
@@ -71,10 +71,10 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[160px] z-[9999999]"> <DropdownMenu className="min-w-[10rem] z-[9999999]">
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition"
disabled={deleting} disabled={deleting}
on:click={async (e) => { on:click={async (e) => {
e.preventDefault(); e.preventDefault();
+2 -2
View File
@@ -1019,7 +1019,7 @@
<div class="text-xs text-gray-500 dark:text-gray-400 mb-1"> <div class="text-xs text-gray-500 dark:text-gray-400 mb-1">
{$i18n.t('No Terminal connection configured.')} {$i18n.t('No Terminal connection configured.')}
</div> </div>
<div class="text-[10px] text-gray-400 dark:text-gray-500"> <div class="text-[0.625rem] text-gray-400 dark:text-gray-500">
{$i18n.t('Add your Open Terminal URL and API key in Settings → Integrations.')} {$i18n.t('Add your Open Terminal URL and API key in Settings → Integrations.')}
</div> </div>
</div> </div>
@@ -1440,7 +1440,7 @@
<div class="text-xs text-gray-400 dark:text-gray-500"> <div class="text-xs text-gray-400 dark:text-gray-500">
{$i18n.t('This folder is empty')} {$i18n.t('This folder is empty')}
</div> </div>
<div class="text-[11px] text-gray-300 dark:text-gray-600"> <div class="text-[0.6875rem] text-gray-300 dark:text-gray-600">
{$i18n.t('Drop files here to upload')} {$i18n.t('Drop files here to upload')}
</div> </div>
</div> </div>
@@ -293,17 +293,17 @@
</span> </span>
{/if} {/if}
{#if !writable && !renaming} {#if !writable && !renaming}
<span class="text-[10px] text-gray-400 shrink-0">Read-only</span> <span class="text-[0.625rem] text-gray-400 shrink-0">Read-only</span>
{/if} {/if}
{#if entry.type === 'file' && entry.size !== undefined && !renaming} {#if entry.type === 'file' && entry.size !== undefined && !renaming}
{#if showDate && entry.modified} {#if showDate && entry.modified}
<span class="text-[10px] text-gray-400 shrink-0" <span class="text-[0.625rem] text-gray-400 shrink-0"
>{formatRelativeTime(entry.modified)}</span >{formatRelativeTime(entry.modified)}</span
> >
{/if} {/if}
<span class="text-xs text-gray-400 shrink-0">{formatFileSize(entry.size)}</span> <span class="text-xs text-gray-400 shrink-0">{formatFileSize(entry.size)}</span>
{:else if entry.type === 'directory' && showDate && entry.modified && !renaming} {:else if entry.type === 'directory' && showDate && entry.modified && !renaming}
<span class="text-[10px] text-gray-400 shrink-0">{formatRelativeTime(entry.modified)}</span> <span class="text-[0.625rem] text-gray-400 shrink-0">{formatRelativeTime(entry.modified)}</span>
{/if} {/if}
</button> </button>
@@ -318,10 +318,10 @@
</button> </button>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[150px] z-[9999999]"> <DropdownMenu className="min-w-[9.375rem] z-[9999999]">
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition"
on:click={(e) => { on:click={(e) => {
e.stopPropagation(); e.stopPropagation();
const path = const path =
@@ -349,7 +349,7 @@
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition"
on:click={(e) => { on:click={(e) => {
e.stopPropagation(); e.stopPropagation();
const path = const path =
@@ -367,7 +367,7 @@
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition disabled:opacity-40 disabled:hover:bg-transparent" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition disabled:opacity-40 disabled:hover:bg-transparent"
disabled={!canMutate} disabled={!canMutate}
on:click={(e) => { on:click={(e) => {
e.stopPropagation(); e.stopPropagation();
@@ -381,7 +381,7 @@
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition disabled:opacity-40 disabled:hover:bg-transparent" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition disabled:opacity-40 disabled:hover:bg-transparent"
disabled={!canMutate} disabled={!canMutate}
on:click={(e) => { on:click={(e) => {
e.stopPropagation(); e.stopPropagation();
@@ -149,7 +149,7 @@
{/if} {/if}
</div> </div>
{#if !writable} {#if !writable}
<span class="text-[10px] text-gray-400 dark:text-gray-500 shrink-0"> <span class="text-[0.625rem] text-gray-400 dark:text-gray-500 shrink-0">
Read-only Read-only
</span> </span>
{/if} {/if}
@@ -196,10 +196,10 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[150px] z-[9999999]"> <DropdownMenu className="min-w-[9.375rem] z-[9999999]">
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition"
on:click={() => onSort('name')} on:click={() => onSort('name')}
> >
<span class="flex-1 text-left">{$i18n.t('Name')}</span> <span class="flex-1 text-left">{$i18n.t('Name')}</span>
@@ -222,7 +222,7 @@
</button> </button>
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition"
on:click={() => onSort('date')} on:click={() => onSort('date')}
> >
<span class="flex-1 text-left">{$i18n.t('Date Modified')}</span> <span class="flex-1 text-left">{$i18n.t('Date Modified')}</span>
@@ -74,7 +74,7 @@
<span class="ml-auto flex items-center gap-1"> <span class="ml-auto flex items-center gap-1">
{#if ports.length > 0} {#if ports.length > 0}
<span <span
class="text-[10px] px-1.5 py-0.5 rounded-full bg-gray-100 dark:bg-gray-800 text-gray-500 dark:text-gray-400" class="text-[0.625rem] px-1.5 py-0.5 rounded-full bg-gray-100 dark:bg-gray-800 text-gray-500 dark:text-gray-400"
> >
{ports.length} {ports.length}
</span> </span>
@@ -103,7 +103,7 @@
</button> </button>
{#if expanded} {#if expanded}
<div class="mt-1 space-y-0.5 max-h-[150px] overflow-y-auto"> <div class="mt-1 space-y-0.5 max-h-[9.375rem] overflow-y-auto">
{#if ports.length === 0} {#if ports.length === 0}
<div class="text-xs text-gray-400 dark:text-gray-500 px-1 py-1"> <div class="text-xs text-gray-400 dark:text-gray-500 px-1 py-1">
{$i18n.t('No servers detected')} {$i18n.t('No servers detected')}
@@ -202,7 +202,7 @@
<input <input
type="text" type="text"
bind:value={urlInput} bind:value={urlInput}
class="w-full text-[11px] font-mono bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-full px-3 py-1 outline-none focus:border-blue-400 dark:focus:border-blue-500 focus:ring-1 focus:ring-blue-400/20 text-gray-600 dark:text-gray-300 transition" class="w-full text-[0.6875rem] font-mono bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-full px-3 py-1 outline-none focus:border-blue-400 dark:focus:border-blue-500 focus:ring-1 focus:ring-blue-400/20 text-gray-600 dark:text-gray-300 transition"
placeholder="localhost:{port}" placeholder="localhost:{port}"
/> />
</form> </form>
+14 -14
View File
@@ -1687,10 +1687,10 @@
{#if atSelectedModel !== undefined} {#if atSelectedModel !== undefined}
<div class="px-2.5 pt-2.5 text-left w-full flex flex-col z-10"> <div class="px-2.5 pt-2.5 text-left w-full flex flex-col z-10">
<div class="flex items-center justify-between w-full"> <div class="flex items-center justify-between w-full">
<div class="pl-[1px] flex items-center gap-2 text-sm dark:text-gray-500"> <div class="pl-[0.0625rem] flex items-center gap-2 text-sm dark:text-gray-500">
<img <img
alt="model profile" alt="model profile"
class="size-3.5 max-w-[28px] object-cover rounded-full" class="size-3.5 max-w-[1.75rem] object-cover rounded-full"
src={`${WEBUI_API_BASE_URL}/models/model/profile/image?id=${$models.find((model) => model.id === atSelectedModel.id).id}&lang=${$i18n.language}`} src={`${WEBUI_API_BASE_URL}/models/model/profile/image?id=${$models.find((model) => model.id === atSelectedModel.id).id}&lang=${$i18n.language}`}
/> />
<div class="translate-y-[0.5px]"> <div class="translate-y-[0.5px]">
@@ -2068,7 +2068,7 @@
{#if showWebSearchButton || showImageGenerationButton || showCodeInterpreterButton || showToolsButton || showSkillsButton || (toggleFilters && toggleFilters.length > 0)} {#if showWebSearchButton || showImageGenerationButton || showCodeInterpreterButton || showToolsButton || showSkillsButton || (toggleFilters && toggleFilters.length > 0)}
<div <div
class="flex self-center w-[1px] h-4 mx-1 bg-gray-200/50 dark:bg-gray-800/50 shrink-0" class="flex self-center w-[0.0625rem] h-4 mx-1 bg-gray-200/50 dark:bg-gray-800/50 shrink-0"
/> />
{/if} {/if}
@@ -2200,7 +2200,7 @@
} }
}} }}
type="button" type="button"
class="group p-[6px] flex gap-1.5 items-center text-sm rounded-full transition-colors duration-300 focus:outline-hidden max-w-full overflow-hidden {selectedFilterIds.includes( class="group p-[0.375rem] flex gap-1.5 items-center text-sm rounded-full transition-colors duration-300 focus:outline-hidden max-w-full overflow-hidden {selectedFilterIds.includes(
filterId filterId
) )
? 'text-sky-500 dark:text-sky-300 bg-sky-50 hover:bg-sky-100 dark:bg-sky-400/10 dark:hover:bg-sky-600/10 border border-sky-200/40 dark:border-sky-500/20' ? 'text-sky-500 dark:text-sky-300 bg-sky-50 hover:bg-sky-100 dark:bg-sky-400/10 dark:hover:bg-sky-600/10 border border-sky-200/40 dark:border-sky-500/20'
@@ -2244,7 +2244,7 @@
<button <button
on:click|preventDefault={() => (webSearchEnabled = !webSearchEnabled)} on:click|preventDefault={() => (webSearchEnabled = !webSearchEnabled)}
type="button" type="button"
class="group p-[6px] flex gap-1.5 items-center text-sm rounded-full transition-colors duration-300 focus:outline-hidden max-w-full overflow-hidden {webSearchEnabled || class="group p-[0.375rem] flex gap-1.5 items-center text-sm rounded-full transition-colors duration-300 focus:outline-hidden max-w-full overflow-hidden {webSearchEnabled ||
($settings?.webSearch ?? false) === 'always' ($settings?.webSearch ?? false) === 'always'
? ' text-sky-500 dark:text-sky-300 bg-sky-50 hover:bg-sky-100 dark:bg-sky-400/10 dark:hover:bg-sky-600/10 border border-sky-200/40 dark:border-sky-500/20' ? ' text-sky-500 dark:text-sky-300 bg-sky-50 hover:bg-sky-100 dark:bg-sky-400/10 dark:hover:bg-sky-600/10 border border-sky-200/40 dark:border-sky-500/20'
: 'bg-transparent text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 '}" : 'bg-transparent text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 '}"
@@ -2263,7 +2263,7 @@
on:click|preventDefault={() => on:click|preventDefault={() =>
(imageGenerationEnabled = !imageGenerationEnabled)} (imageGenerationEnabled = !imageGenerationEnabled)}
type="button" type="button"
class="group p-[6px] flex gap-1.5 items-center text-sm rounded-full transition-colors duration-300 focus:outline-hidden max-w-full overflow-hidden {imageGenerationEnabled class="group p-[0.375rem] flex gap-1.5 items-center text-sm rounded-full transition-colors duration-300 focus:outline-hidden max-w-full overflow-hidden {imageGenerationEnabled
? ' text-sky-500 dark:text-sky-300 bg-sky-50 hover:bg-sky-100 dark:bg-sky-400/10 dark:hover:bg-sky-700/10 border border-sky-200/40 dark:border-sky-500/20' ? ' text-sky-500 dark:text-sky-300 bg-sky-50 hover:bg-sky-100 dark:bg-sky-400/10 dark:hover:bg-sky-700/10 border border-sky-200/40 dark:border-sky-500/20'
: 'bg-transparent text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 '}" : 'bg-transparent text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 '}"
> >
@@ -2285,7 +2285,7 @@
on:click|preventDefault={() => on:click|preventDefault={() =>
(codeInterpreterEnabled = !codeInterpreterEnabled)} (codeInterpreterEnabled = !codeInterpreterEnabled)}
type="button" type="button"
class=" group p-[6px] flex gap-1.5 items-center text-sm transition-colors duration-300 max-w-full overflow-hidden {codeInterpreterEnabled class=" group p-[0.375rem] flex gap-1.5 items-center text-sm transition-colors duration-300 max-w-full overflow-hidden {codeInterpreterEnabled
? ' text-sky-500 dark:text-sky-300 bg-sky-50 hover:bg-sky-100 dark:bg-sky-400/10 dark:hover:bg-sky-700/10 border border-sky-200/40 dark:border-sky-500/20' ? ' text-sky-500 dark:text-sky-300 bg-sky-50 hover:bg-sky-100 dark:bg-sky-400/10 dark:hover:bg-sky-700/10 border border-sky-200/40 dark:border-sky-500/20'
: 'bg-transparent text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 '} {($settings?.highContrastMode ?? : 'bg-transparent text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 '} {($settings?.highContrastMode ??
false) false)
@@ -2308,7 +2308,7 @@
initiateOAuthRedirect(pendingTool); initiateOAuthRedirect(pendingTool);
}} }}
type="button" type="button"
class="group px-2 py-[5px] flex gap-1.5 items-center text-xs rounded-full transition-colors duration-300 focus:outline-hidden max-w-full overflow-hidden class="group px-2 py-[0.3125rem] flex gap-1.5 items-center text-xs rounded-full transition-colors duration-300 focus:outline-hidden max-w-full overflow-hidden
text-amber-600 dark:text-amber-400 bg-amber-50 hover:bg-amber-100 dark:bg-amber-400/10 dark:hover:bg-amber-600/10 border border-amber-200/40 dark:border-amber-500/20" text-amber-600 dark:text-amber-400 bg-amber-50 hover:bg-amber-100 dark:bg-amber-400/10 dark:hover:bg-amber-600/10 border border-amber-200/40 dark:border-amber-500/20"
> >
<Wrench className="size-3.5" strokeWidth="1.75" /> <Wrench className="size-3.5" strokeWidth="1.75" />
@@ -2330,7 +2330,7 @@
</div> </div>
</div> </div>
<div class="self-end flex space-x-1 mr-1 shrink-0 gap-[0.5px]"> <div class="self-end flex space-x-1 mr-1 shrink-0 gap-[0.03125rem]">
<div class="flex min-w-0 max-w-[10rem] items-center sm:max-w-[13rem]"> <div class="flex min-w-0 max-w-[10rem] items-center sm:max-w-[13rem]">
<ModelSelector <ModelSelector
bind:this={modelSelector} bind:this={modelSelector}
@@ -2338,7 +2338,7 @@
showSetDefault={!history?.currentId} showSetDefault={!history?.currentId}
placement="auto" placement="auto"
align="end" align="end"
triggerClassName="items-center gap-1.5 rounded-lg pl-2 pr-1.5 py-1 text-[13px] font-normal text-gray-600 transition-colors duration-100 hover:bg-gray-50/40 hover:text-gray-700 dark:text-gray-300 dark:hover:bg-gray-800/40 dark:hover:text-gray-200" triggerClassName="items-center gap-1.5 rounded-lg pl-2 pr-1.5 py-1 text-[0.8125rem] font-normal text-gray-600 transition-colors duration-100 hover:bg-gray-50/40 hover:text-gray-700 dark:text-gray-300 dark:hover:bg-gray-800/40 dark:hover:text-gray-200"
/> />
</div> </div>
@@ -2363,7 +2363,7 @@
<Tooltip content={$i18n.t('Stop')}> <Tooltip content={$i18n.t('Stop')}>
<button <button
aria-label={$i18n.t('Stop')} aria-label={$i18n.t('Stop')}
class="bg-white hover:bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-800 transition rounded-full p-[5px]" class="bg-white hover:bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-800 transition rounded-full p-[0.3125rem]"
on:click={() => { on:click={() => {
stopResponse(); stopResponse();
}} }}
@@ -2420,7 +2420,7 @@
}} }}
aria-label="Voice Input" aria-label="Voice Input"
> >
<Mic className="size-[18px]" /> <Mic className="size-[1.125rem]" />
</button> </button>
</Tooltip> </Tooltip>
{/if} {/if}
@@ -2431,7 +2431,7 @@
<!-- {$i18n.t('Call')} --> <!-- {$i18n.t('Call')} -->
<Tooltip content={$i18n.t('Voice mode')}> <Tooltip content={$i18n.t('Voice mode')}>
<button <button
class=" bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full p-[5px] self-center" class=" bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full p-[0.3125rem] self-center"
type="button" type="button"
on:click={async () => { on:click={async () => {
if (selectedModels.length > 1) { if (selectedModels.length > 1) {
@@ -2500,7 +2500,7 @@
id="send-message-button" id="send-message-button"
class="{!(prompt === '' && files.length === 0) || uploadPending class="{!(prompt === '' && files.length === 0) || uploadPending
? 'bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 ' ? 'bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 '
: 'text-white bg-gray-200 dark:text-gray-900 dark:bg-gray-700 disabled'} transition rounded-full p-[5px] self-center" : 'text-white bg-gray-200 dark:text-gray-900 dark:bg-gray-700 disabled'} transition rounded-full p-[0.3125rem] self-center"
type="submit" type="submit"
disabled={(prompt === '' && files.length === 0) || uploadPending} disabled={(prompt === '' && files.length === 0) || uploadPending}
> >
@@ -26,10 +26,10 @@
<slot /> <slot />
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[180px] z-[9999] dark:bg-gray-900 shadow-xs"> <DropdownMenu className="min-w-[11.25rem] z-[9999] dark:bg-gray-900 shadow-xs">
{#each devices as device} {#each devices as device}
<button <button
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] 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] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
dispatch('change', device.deviceId); dispatch('change', device.deviceId);
}} }}
@@ -168,7 +168,7 @@
{#each knowledgeResults as item, idx} {#each knowledgeResults as item, idx}
{@const itemIdx = idx} {@const itemIdx = idx}
{#if idx === 0 || item?.type !== knowledgeResults[idx - 1]?.type} {#if idx === 0 || item?.type !== knowledgeResults[idx - 1]?.type}
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{#if item?.type === 'folder'} {#if item?.type === 'folder'}
{$i18n.t('Folders')} {$i18n.t('Folders')}
{:else if item?.type === 'collection'} {:else if item?.type === 'collection'}
@@ -180,7 +180,7 @@
{/if} {/if}
<button <button
class="flex h-[1.6875rem] w-full items-center justify-between rounded-xl px-2 text-left text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {itemIdx === class="flex h-[1.6875rem] w-full items-center justify-between rounded-xl px-2 text-left text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {itemIdx ===
selectedIdx selectedIdx
? 'bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button' ? 'bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button'
: ''}" : ''}"
@@ -232,7 +232,7 @@
{/if} {/if}
{#if filteredModels.length > 0} {#if filteredModels.length > 0}
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{$i18n.t('Models')} {$i18n.t('Models')}
</div> </div>
@@ -240,7 +240,7 @@
{@const itemIdx = knowledgeResults.length + modelIdx} {@const itemIdx = knowledgeResults.length + modelIdx}
<Tooltip content={model.id} placement="top-start"> <Tooltip content={model.id} placement="top-start">
<button <button
class="flex h-[1.6875rem] w-full items-center rounded-xl px-2 text-left text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {itemIdx === class="flex h-[1.6875rem] w-full items-center rounded-xl px-2 text-left text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {itemIdx ===
selectedIdx selectedIdx
? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button' ? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button'
: ''}" : ''}"
@@ -64,13 +64,13 @@
</script> </script>
{#if filteredItems.length > 0} {#if filteredItems.length > 0}
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{$i18n.t('Emojis')} {$i18n.t('Emojis')}
</div> </div>
{#each filteredItems as emoji, emojiIdx} {#each filteredItems as emoji, emojiIdx}
<button <button
class="flex h-[1.6875rem] w-full items-center rounded-xl px-2 text-left text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {emojiIdx === class="flex h-[1.6875rem] w-full items-center rounded-xl px-2 text-left text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {emojiIdx ===
selectedIdx selectedIdx
? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button' ? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button'
: ''}" : ''}"
@@ -91,7 +91,7 @@
class="size-4.5 flex-shrink-0" class="size-4.5 flex-shrink-0"
loading="lazy" loading="lazy"
/> />
<div class="truncate text-[13px]"> <div class="truncate text-[0.8125rem]">
:{emoji.shortCodes[0]}: :{emoji.shortCodes[0]}:
</div> </div>
</div> </div>
@@ -142,7 +142,7 @@
{#if filteredItems.length > 0 || query.startsWith('http')} {#if filteredItems.length > 0 || query.startsWith('http')}
{#each filteredItems as item, idx} {#each filteredItems as item, idx}
{#if idx === 0 || item?.type !== items[idx - 1]?.type} {#if idx === 0 || item?.type !== items[idx - 1]?.type}
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{#if item?.type === 'folder'} {#if item?.type === 'folder'}
{$i18n.t('Folders')} {$i18n.t('Folders')}
{:else if item?.type === 'collection'} {:else if item?.type === 'collection'}
@@ -155,7 +155,7 @@
{#if !['youtube', 'web'].includes(item.type)} {#if !['youtube', 'web'].includes(item.type)}
<button <button
class="flex h-[1.6875rem] w-full items-center justify-between rounded-xl px-2 text-left text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {idx === class="flex h-[1.6875rem] w-full items-center justify-between rounded-xl px-2 text-left text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {idx ===
selectedIdx selectedIdx
? 'bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button' ? 'bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button'
: ''}" : ''}"
@@ -204,7 +204,7 @@
{#if isYoutubeUrl(query)} {#if isYoutubeUrl(query)}
<button <button
class="flex h-[1.6875rem] w-full items-center rounded-xl bg-gray-50/40 px-2 text-left text-[13px] dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button" class="flex h-[1.6875rem] w-full items-center rounded-xl bg-gray-50/40 px-2 text-left text-[0.8125rem] dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button"
type="button" type="button"
data-selected={selectedIdx === filteredItems.findIndex((i) => i.type === 'youtube')} data-selected={selectedIdx === filteredItems.findIndex((i) => i.type === 'youtube')}
on:click={() => { on:click={() => {
@@ -232,7 +232,7 @@
</button> </button>
{:else if query.startsWith('http')} {:else if query.startsWith('http')}
<button <button
class="flex h-[1.6875rem] w-full items-center rounded-xl bg-gray-50/40 px-2 text-left text-[13px] dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button" class="flex h-[1.6875rem] w-full items-center rounded-xl bg-gray-50/40 px-2 text-left text-[0.8125rem] dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button"
type="button" type="button"
data-selected={selectedIdx === filteredItems.findIndex((i) => i.type === 'web')} data-selected={selectedIdx === filteredItems.findIndex((i) => i.type === 'web')}
on:click={() => { on:click={() => {
@@ -60,7 +60,7 @@
}; };
</script> </script>
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{$i18n.t('Models')} {$i18n.t('Models')}
</div> </div>
@@ -68,7 +68,7 @@
{#each filteredItems as model, modelIdx} {#each filteredItems as model, modelIdx}
<Tooltip content={model.id} placement="top-start"> <Tooltip content={model.id} placement="top-start">
<button <button
class="flex h-[1.6875rem] w-full items-center rounded-xl px-2 text-left text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {modelIdx === class="flex h-[1.6875rem] w-full items-center rounded-xl px-2 text-left text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {modelIdx ===
selectedIdx selectedIdx
? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button' ? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button'
: ''}" : ''}"
@@ -57,7 +57,7 @@
}; };
</script> </script>
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{$i18n.t('Prompts')} {$i18n.t('Prompts')}
</div> </div>
@@ -66,7 +66,7 @@
{#each filteredItems as promptItem, promptIdx} {#each filteredItems as promptItem, promptIdx}
<Tooltip content={promptItem.name} placement="top-start"> <Tooltip content={promptItem.name} placement="top-start">
<button <button
class="flex h-[1.6875rem] w-full items-center gap-1.5 rounded-xl px-2 text-left text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {promptIdx === class="flex h-[1.6875rem] w-full items-center gap-1.5 rounded-xl px-2 text-left text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {promptIdx ===
selectedPromptIdx selectedPromptIdx
? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button' ? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button'
: ''}" : ''}"
@@ -69,7 +69,7 @@
}; };
</script> </script>
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{$i18n.t('Skills')} {$i18n.t('Skills')}
</div> </div>
@@ -81,7 +81,7 @@
tippyOptions={{ maxWidth: '20rem' }} tippyOptions={{ maxWidth: '20rem' }}
> >
<button <button
class="flex h-[1.6875rem] w-full items-center rounded-xl px-2 text-left text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {skillIdx === class="flex h-[1.6875rem] w-full items-center rounded-xl px-2 text-left text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {skillIdx ===
selectedIdx selectedIdx
? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button' ? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button'
: ''}" : ''}"
@@ -299,7 +299,7 @@
{/if} {/if}
{#if filteredPrompts.length > 0} {#if filteredPrompts.length > 0}
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{$i18n.t('Prompts')} {$i18n.t('Prompts')}
</div> </div>
@@ -307,7 +307,7 @@
{@const itemIdx = commandItems.length + promptIdx} {@const itemIdx = commandItems.length + promptIdx}
<Tooltip content={promptItem.name} placement="top-start"> <Tooltip content={promptItem.name} placement="top-start">
<button <button
class="flex h-[1.6875rem] w-full items-center gap-1.5 rounded-xl px-2 text-left text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {itemIdx === class="flex h-[1.6875rem] w-full items-center gap-1.5 rounded-xl px-2 text-left text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {itemIdx ===
selectedIdx selectedIdx
? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button' ? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button'
: ''}" : ''}"
@@ -334,7 +334,7 @@
{/if} {/if}
{#if skills.length > 0} {#if skills.length > 0}
<div class="px-2 py-1 text-[11px] text-gray-500 dark:text-gray-400"> <div class="px-2 py-1 text-[0.6875rem] text-gray-500 dark:text-gray-400">
{$i18n.t('Skills')} {$i18n.t('Skills')}
</div> </div>
@@ -346,7 +346,7 @@
tippyOptions={{ maxWidth: '20rem' }} tippyOptions={{ maxWidth: '20rem' }}
> >
<button <button
class="flex h-[1.6875rem] w-full items-center rounded-xl px-2 text-left text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {itemIdx === class="flex h-[1.6875rem] w-full items-center rounded-xl px-2 text-left text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 {itemIdx ===
selectedIdx selectedIdx
? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button' ? 'bg-gray-50/40 dark:bg-gray-800/40 selected-command-option-button'
: ''}" : ''}"
@@ -138,7 +138,7 @@
className="w-full" className="w-full"
> >
<button <button
class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled
? 'opacity-50' ? 'opacity-50'
: ''}" : ''}"
type="button" type="button"
@@ -164,7 +164,7 @@
className="w-full" className="w-full"
> >
<button <button
class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled
? 'opacity-50' ? 'opacity-50'
: ''}" : ''}"
type="button" type="button"
@@ -195,7 +195,7 @@
className="w-full" className="w-full"
> >
<button <button
class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!webUploadEnabled class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!webUploadEnabled
? 'opacity-50' ? 'opacity-50'
: ''}" : ''}"
type="button" type="button"
@@ -220,7 +220,7 @@
className="w-full" className="w-full"
> >
<button <button
class="flex gap-2 w-full items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled class="flex gap-2 w-full items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled
? 'opacity-50' ? 'opacity-50'
: ''}" : ''}"
on:click={() => { on:click={() => {
@@ -253,7 +253,7 @@
className="w-full" className="w-full"
> >
<button <button
class="flex gap-2 w-full items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled class="flex gap-2 w-full items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled
? 'opacity-50' ? 'opacity-50'
: ''}" : ''}"
on:click={() => { on:click={() => {
@@ -284,7 +284,7 @@
className="w-full" className="w-full"
> >
<button <button
class="flex gap-2 w-full items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled class="flex gap-2 w-full items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled
? 'opacity-50' ? 'opacity-50'
: ''}" : ''}"
on:click={() => { on:click={() => {
@@ -314,7 +314,7 @@
className="w-full" className="w-full"
> >
<button <button
class="flex gap-2 w-full items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled class="flex gap-2 w-full items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled
? 'opacity-50' ? 'opacity-50'
: ''}" : ''}"
on:click={() => { on:click={() => {
@@ -338,7 +338,7 @@
{#if fileUploadEnabled} {#if fileUploadEnabled}
{#if $config?.features?.enable_google_drive_integration} {#if $config?.features?.enable_google_drive_integration}
<button <button
class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl" class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl"
type="button" type="button"
on:click={() => { on:click={() => {
uploadGoogleDriveHandler(); uploadGoogleDriveHandler();
@@ -381,7 +381,7 @@
{#if $config?.features?.enable_onedrive_integration && ($config?.features?.enable_onedrive_personal || $config?.features?.enable_onedrive_business)} {#if $config?.features?.enable_onedrive_integration && ($config?.features?.enable_onedrive_personal || $config?.features?.enable_onedrive_business)}
<button <button
class="flex gap-2 w-full items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled class="flex gap-2 w-full items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl {!fileUploadEnabled
? 'opacity-50' ? 'opacity-50'
: ''}" : ''}"
on:click={() => { on:click={() => {
@@ -490,7 +490,7 @@
{:else if tab === 'knowledge'} {:else if tab === 'knowledge'}
<div class="flex max-h-72 flex-col overflow-hidden" in:fly={{ x: 20, duration: 150 }}> <div class="flex max-h-72 flex-col overflow-hidden" in:fly={{ x: 20, duration: 150 }}>
<button <button
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
tab = ''; tab = '';
}} }}
@@ -509,7 +509,7 @@
{:else if tab === 'notes'} {:else if tab === 'notes'}
<div class="flex max-h-72 flex-col overflow-hidden" in:fly={{ x: 20, duration: 150 }}> <div class="flex max-h-72 flex-col overflow-hidden" in:fly={{ x: 20, duration: 150 }}>
<button <button
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
tab = ''; tab = '';
}} }}
@@ -528,7 +528,7 @@
{:else if tab === 'files'} {:else if tab === 'files'}
<div class="flex max-h-72 flex-col overflow-hidden" in:fly={{ x: 20, duration: 150 }}> <div class="flex max-h-72 flex-col overflow-hidden" in:fly={{ x: 20, duration: 150 }}>
<button <button
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
tab = ''; tab = '';
}} }}
@@ -547,7 +547,7 @@
{:else if tab === 'chats'} {:else if tab === 'chats'}
<div class="flex max-h-72 flex-col overflow-hidden" in:fly={{ x: 20, duration: 150 }}> <div class="flex max-h-72 flex-col overflow-hidden" in:fly={{ x: 20, duration: 150 }}>
<button <button
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
tab = ''; tab = '';
}} }}
@@ -566,7 +566,7 @@
{:else if tab === 'microsoft_onedrive'} {:else if tab === 'microsoft_onedrive'}
<div in:fly={{ x: 20, duration: 150 }}> <div in:fly={{ x: 20, duration: 150 }}>
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
tab = ''; tab = '';
}} }}
@@ -582,7 +582,7 @@
{#if $config?.features?.enable_onedrive_personal} {#if $config?.features?.enable_onedrive_personal}
<button <button
class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl text-left" class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl text-left"
type="button" type="button"
on:click={() => { on:click={() => {
uploadOneDriveHandler('personal'); uploadOneDriveHandler('personal');
@@ -597,7 +597,7 @@
{#if $config?.features?.enable_onedrive_business} {#if $config?.features?.enable_onedrive_business}
<button <button
class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl text-left" class="flex w-full gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40 rounded-xl text-left"
type="button" type="button"
on:click={() => { on:click={() => {
uploadOneDriveHandler('organizations'); uploadOneDriveHandler('organizations');
@@ -121,7 +121,7 @@
<div class="flex flex-col gap-0.5"> <div class="flex flex-col gap-0.5">
{#each items as item, idx} {#each items as item, idx}
<button <button
class=" h-[1.6875rem] px-2 rounded-xl w-full text-left flex justify-between items-center text-[13px] font-normal {idx === class=" h-[1.6875rem] px-2 rounded-xl w-full text-left flex justify-between items-center text-[0.8125rem] font-normal {idx ===
selectedIdx selectedIdx
? ' bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button' ? ' bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button'
: ''}" : ''}"
@@ -110,7 +110,7 @@
<div class="flex flex-col gap-0.5"> <div class="flex flex-col gap-0.5">
{#each items as item, idx} {#each items as item, idx}
<button <button
class=" h-[1.6875rem] px-2 rounded-xl w-full text-left flex justify-between items-center text-[13px] font-normal {idx === class=" h-[1.6875rem] px-2 rounded-xl w-full text-left flex justify-between items-center text-[0.8125rem] font-normal {idx ===
selectedIdx selectedIdx
? ' bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button' ? ' bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button'
: ''}" : ''}"
@@ -200,7 +200,7 @@
{:else} {:else}
{#each items as item, idx (item.id)} {#each items as item, idx (item.id)}
<div <div
class=" h-[1.6875rem] px-2 rounded-xl w-full text-left flex justify-between items-center text-[13px] font-normal hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100 {idx === class=" h-[1.6875rem] px-2 rounded-xl w-full text-left flex justify-between items-center text-[0.8125rem] font-normal hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100 {idx ===
selectedIdx selectedIdx
? ' bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button' ? ' bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button'
: ''}" : ''}"
@@ -234,7 +234,7 @@
placement="top-start" placement="top-start"
className="flex flex-1 min-w-0" className="flex flex-1 min-w-0"
> >
<div class="line-clamp-1 flex-1 text-[13px]"> <div class="line-clamp-1 flex-1 text-[0.8125rem]">
{decodeString(item?.name)} {decodeString(item?.name)}
</div> </div>
</Tooltip> </Tooltip>
@@ -275,7 +275,7 @@
{:else} {:else}
{#each selectedFileItems as file, fileIdx (file.id)} {#each selectedFileItems as file, fileIdx (file.id)}
<button <button
class=" h-[1.6875rem] px-2 rounded-xl w-full text-left flex justify-between items-center text-[13px] font-normal hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100" class=" h-[1.6875rem] px-2 rounded-xl w-full text-left flex justify-between items-center text-[0.8125rem] font-normal hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100"
type="button" type="button"
on:click={() => { on:click={() => {
console.log(file); console.log(file);
@@ -292,7 +292,7 @@
</Tooltip> </Tooltip>
<Tooltip content={decodeString(file?.meta?.name)} placement="top-start"> <Tooltip content={decodeString(file?.meta?.name)} placement="top-start">
<div class="line-clamp-1 flex-1 text-[13px]"> <div class="line-clamp-1 flex-1 text-[0.8125rem]">
{decodeString(file?.meta?.name)} {decodeString(file?.meta?.name)}
</div> </div>
</Tooltip> </Tooltip>
@@ -122,7 +122,7 @@
<div class="flex flex-col gap-0.5"> <div class="flex flex-col gap-0.5">
{#each items as item, idx} {#each items as item, idx}
<button <button
class=" h-[1.6875rem] px-2 rounded-xl w-full text-left flex justify-between items-center text-[13px] font-normal {idx === class=" h-[1.6875rem] px-2 rounded-xl w-full text-left flex justify-between items-center text-[0.8125rem] font-normal {idx ===
selectedIdx selectedIdx
? ' bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button' ? ' bg-gray-50/40 dark:bg-gray-800/40 dark:text-gray-100 selected-command-option-button'
: ''}" : ''}"
@@ -14,7 +14,7 @@
<input <input
bind:value bind:value
class="w-full bg-transparent text-[13px] font-normal outline-hidden placeholder:text-gray-400 dark:placeholder:text-gray-500" class="w-full bg-transparent text-[0.8125rem] font-normal outline-hidden placeholder:text-gray-400 dark:placeholder:text-gray-500"
{placeholder} {placeholder}
autocomplete="off" autocomplete="off"
aria-label={placeholder} aria-label={placeholder}
@@ -149,7 +149,7 @@
{#if tools} {#if tools}
{#if Object.keys(tools).length > 0} {#if Object.keys(tools).length > 0}
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
tab = 'tools'; tab = 'tools';
}} }}
@@ -171,7 +171,7 @@
{#if skills && Object.keys(skills).length > 0} {#if skills && Object.keys(skills).length > 0}
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
tab = 'skills'; tab = 'skills';
}} }}
@@ -200,7 +200,7 @@
{#each toggleFilters.sort( (a, b) => a.name.localeCompare( b.name, undefined, { sensitivity: 'base' } ) ) as filter, filterIdx (filter.id)} {#each toggleFilters.sort( (a, b) => a.name.localeCompare( b.name, undefined, { sensitivity: 'base' } ) ) as filter, filterIdx (filter.id)}
<Tooltip content={filter?.description} placement="top-start"> <Tooltip content={filter?.description} placement="top-start">
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
if (selectedFilterIds.includes(filter.id)) { if (selectedFilterIds.includes(filter.id)) {
selectedFilterIds = selectedFilterIds.filter((id) => id !== filter.id); selectedFilterIds = selectedFilterIds.filter((id) => id !== filter.id);
@@ -270,7 +270,7 @@
{#if showWebSearchButton} {#if showWebSearchButton}
<Tooltip content={$i18n.t('Search the internet')} placement="top-start"> <Tooltip content={$i18n.t('Search the internet')} placement="top-start">
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
aria-pressed={webSearchEnabled} aria-pressed={webSearchEnabled}
aria-label={webSearchEnabled aria-label={webSearchEnabled
? $i18n.t('Disable Web Search') ? $i18n.t('Disable Web Search')
@@ -306,7 +306,7 @@
{#if showImageGenerationButton} {#if showImageGenerationButton}
<Tooltip content={$i18n.t('Generate an image')} placement="top-start"> <Tooltip content={$i18n.t('Generate an image')} placement="top-start">
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
aria-pressed={imageGenerationEnabled} aria-pressed={imageGenerationEnabled}
aria-label={imageGenerationEnabled aria-label={imageGenerationEnabled
? $i18n.t('Disable Image Generation') ? $i18n.t('Disable Image Generation')
@@ -341,7 +341,7 @@
{#if showCodeInterpreterButton} {#if showCodeInterpreterButton}
<Tooltip content={$i18n.t('Execute code for analysis')} placement="top-start"> <Tooltip content={$i18n.t('Execute code for analysis')} placement="top-start">
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
aria-pressed={codeInterpreterEnabled} aria-pressed={codeInterpreterEnabled}
aria-label={codeInterpreterEnabled aria-label={codeInterpreterEnabled
? $i18n.t('Disable Code Interpreter') ? $i18n.t('Disable Code Interpreter')
@@ -376,7 +376,7 @@
{:else if tab === 'tools' && tools} {:else if tab === 'tools' && tools}
<div in:fly={{ x: 20, duration: 150 }}> <div in:fly={{ x: 20, duration: 150 }}>
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
tab = ''; tab = '';
}} }}
@@ -393,7 +393,7 @@
{#each Object.keys(tools) as toolId} {#each Object.keys(tools) as toolId}
<button <button
class="relative flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="relative flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={async (e) => { on:click={async (e) => {
if (!(tools[toolId]?.authenticated ?? true)) { if (!(tools[toolId]?.authenticated ?? true)) {
e.preventDefault(); e.preventDefault();
@@ -499,7 +499,7 @@
{:else if tab === 'skills' && skills} {:else if tab === 'skills' && skills}
<div in:fly={{ x: 20, duration: 150 }}> <div in:fly={{ x: 20, duration: 150 }}>
<button <button
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
tab = ''; tab = '';
}} }}
@@ -516,7 +516,7 @@
{#each Object.keys(skills) as skillId} {#each Object.keys(skills) as skillId}
<button <button
class="relative flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="relative flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={async () => { on:click={async () => {
skills[skillId].enabled = !skills[skillId].enabled; skills[skillId].enabled = !skills[skillId].enabled;
@@ -48,14 +48,14 @@
</div> </div>
{:else} {:else}
<div <div
class="flex h-6 max-w-[9rem] items-center gap-1 rounded-lg border border-gray-100/60 bg-white/60 px-1.5 text-[11px] leading-none text-gray-500 dark:border-white/[0.06] dark:bg-white/[0.025] dark:text-gray-400" class="flex h-6 max-w-[9rem] items-center gap-1 rounded-lg border border-gray-100/60 bg-white/60 px-1.5 text-[0.6875rem] leading-none text-gray-500 dark:border-white/[0.06] dark:bg-white/[0.025] dark:text-gray-400"
> >
{#if file.status === 'uploading'} {#if file.status === 'uploading'}
<span class="shrink-0 text-gray-400 dark:text-gray-500"> <span class="shrink-0 text-gray-400 dark:text-gray-500">
<Spinner className="size-3" /> <Spinner className="size-3" />
</span> </span>
{/if} {/if}
<span class="max-w-[80px] truncate">{file.name ?? 'file'}</span> <span class="max-w-[5rem] truncate">{file.name ?? 'file'}</span>
</div> </div>
{/if} {/if}
{/each} {/each}
@@ -109,7 +109,7 @@
<Tooltip content={$i18n.t('Terminal')} placement="top"> <Tooltip content={$i18n.t('Terminal')} placement="top">
<button <button
type="button" type="button"
class="flex items-center gap-1.5 translate-y-[1px] text-[13px] text-gray-600 hover:bg-gray-50/40 hover:text-gray-700 dark:text-gray-300 dark:hover:bg-gray-800/40 dark:hover:text-gray-200 transition rounded-lg cursor-pointer {$selectedTerminalId && class="flex items-center gap-1.5 translate-y-[1px] text-[0.8125rem] text-gray-600 hover:bg-gray-50/40 hover:text-gray-700 dark:text-gray-300 dark:hover:bg-gray-800/40 dark:hover:text-gray-200 transition rounded-lg cursor-pointer {$selectedTerminalId &&
selectedLabel selectedLabel
? ' p-1 ' ? ' p-1 '
: ' p-1 opacity-50'}" : ' p-1 opacity-50'}"
@@ -117,7 +117,7 @@
<Cloud className="size-3.5" strokeWidth="2" /> <Cloud className="size-3.5" strokeWidth="2" />
{#if $selectedTerminalId && selectedLabel} {#if $selectedTerminalId && selectedLabel}
<span class="truncate text-[13px] max-w-[100px] sm:max-w-[150px]">{selectedLabel}</span> <span class="truncate text-[0.8125rem] max-w-[6.25rem] sm:max-w-[9.375rem]">{selectedLabel}</span>
{/if} {/if}
</button> </button>
</Tooltip> </Tooltip>
@@ -130,7 +130,7 @@
{#if directTerminals.length > 0 && ($user?.role === 'admin' || ($user?.permissions?.features?.direct_tool_servers ?? true))} {#if directTerminals.length > 0 && ($user?.role === 'admin' || ($user?.permissions?.features?.direct_tool_servers ?? true))}
<div class="flex items-center justify-between px-3 py-1"> <div class="flex items-center justify-between px-3 py-1">
<span <span
class="text-[10px] font-normal text-gray-400 dark:text-gray-500 uppercase tracking-wider" class="text-[0.625rem] font-normal text-gray-400 dark:text-gray-500 uppercase tracking-wider"
> >
{$i18n.t('Direct')} {$i18n.t('Direct')}
</span> </span>
@@ -161,7 +161,7 @@
{#each directTerminals as terminal} {#each directTerminals as terminal}
<button <button
type="button" type="button"
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl {$selectedTerminalId === class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl {$selectedTerminalId ===
terminal.url terminal.url
? 'bg-gray-50/40 dark:bg-gray-800/40' ? 'bg-gray-50/40 dark:bg-gray-800/40'
: 'hover:bg-gray-50/40 dark:hover:bg-gray-800/40'}" : 'hover:bg-gray-50/40 dark:hover:bg-gray-800/40'}"
@@ -197,7 +197,7 @@
{#if systemTerminals.length > 0} {#if systemTerminals.length > 0}
<div class="flex items-center justify-between px-3 py-1"> <div class="flex items-center justify-between px-3 py-1">
<span <span
class="text-[10px] font-normal text-gray-400 dark:text-gray-500 uppercase tracking-wider" class="text-[0.625rem] font-normal text-gray-400 dark:text-gray-500 uppercase tracking-wider"
> >
{$i18n.t('System')} {$i18n.t('System')}
</span> </span>
@@ -230,7 +230,7 @@
{#each systemTerminals as terminal} {#each systemTerminals as terminal}
<button <button
type="button" type="button"
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer rounded-xl {$selectedTerminalId === class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl {$selectedTerminalId ===
terminal.id terminal.id
? 'bg-gray-50/40 dark:bg-gray-800/40' ? 'bg-gray-50/40 dark:bg-gray-800/40'
: 'hover:bg-gray-50/40 dark:hover:bg-gray-800/40'}" : 'hover:bg-gray-50/40 dark:hover:bg-gray-800/40'}"
@@ -497,7 +497,7 @@
{#each visualizerData.slice().reverse() as rms} {#each visualizerData.slice().reverse() as rms}
<div class="flex items-center h-full"> <div class="flex items-center h-full">
<div <div
class="w-[2px] shrink-0 class="w-[0.125rem] shrink-0
{loading {loading
? ' bg-gray-500 dark:bg-gray-400 ' ? ' bg-gray-500 dark:bg-gray-400 '
@@ -188,7 +188,7 @@
{/each} {/each}
{#if citations.length > 3} {#if citations.length > 3}
<div <div
class="size-4 rounded-full shrink-0 border border-white dark:border-gray-850 bg-gray-100 dark:bg-gray-800 flex items-center justify-center text-[8px] font-normal text-gray-500 dark:text-gray-400 whitespace-nowrap tracking-tighter" class="size-4 rounded-full shrink-0 border border-white dark:border-gray-850 bg-gray-100 dark:bg-gray-800 flex items-center justify-center text-[0.5rem] font-normal text-gray-500 dark:text-gray-400 whitespace-nowrap tracking-tighter"
aria-hidden="true" aria-hidden="true"
> >
+{citations.length - Math.min(urlCitations.length, 3)} +{citations.length - Math.min(urlCitations.length, 3)}
@@ -41,7 +41,7 @@
{#if title !== 'N/A'} {#if title !== 'N/A'}
<button <button
aria-label={$i18n.t('View source: {{title}}', { title: formattedTitle(decodeString(title)) })} aria-label={$i18n.t('View source: {{title}}', { title: formattedTitle(decodeString(title)) })}
class="text-[10px] w-fit translate-y-[2px] px-2 py-0.5 dark:bg-white/5 dark:text-white/80 dark:hover:text-white bg-gray-50 text-black/80 hover:text-black transition rounded-xl" class="text-[0.625rem] w-fit translate-y-[2px] px-2 py-0.5 dark:bg-white/5 dark:text-white/80 dark:hover:text-white bg-gray-50 text-black/80 hover:text-black transition rounded-xl"
on:click={() => { on:click={() => {
onClick(id); onClick(id);
}} }}
@@ -49,7 +49,7 @@
<LinkPreview.Trigger> <LinkPreview.Trigger>
<button <button
aria-label={`${getDisplayTitle(formattedTitle(decodeString(sourceIds[token.ids[0] - 1])))} +${(token?.ids ?? []).length - 1} more sources`} aria-label={`${getDisplayTitle(formattedTitle(decodeString(sourceIds[token.ids[0] - 1])))} +${(token?.ids ?? []).length - 1} more sources`}
class="text-[10px] w-fit translate-y-[2px] px-2 py-0.5 dark:bg-white/5 dark:text-white/80 dark:hover:text-white bg-gray-50 text-black/80 hover:text-black transition rounded-xl" class="text-[0.625rem] w-fit translate-y-[2px] px-2 py-0.5 dark:bg-white/5 dark:text-white/80 dark:hover:text-white bg-gray-50 text-black/80 hover:text-black transition rounded-xl"
on:click={() => { on:click={() => {
openPreview = !openPreview; openPreview = !openPreview;
}} }}
@@ -259,7 +259,7 @@
<!-- Role label --> <!-- Role label -->
<div class="flex items-start pt-1.5"> <div class="flex items-start pt-1.5">
<div <div
class="text-[11px] font-normal uppercase tracking-wide min-w-[4.5rem] text-gray-400 dark:text-gray-500" class="text-[0.6875rem] font-normal uppercase tracking-wide min-w-[4.5rem] text-gray-400 dark:text-gray-500"
> >
{getItemLabel(di)} {getItemLabel(di)}
</div> </div>
@@ -28,12 +28,12 @@
<slot></slot> <slot></slot>
<div slot="content"> <div slot="content">
<DropdownMenu className="max-w-[200px] transition"> <DropdownMenu className="max-w-[12.5rem] transition">
<div class="py-1 px-2 flex dark:text-gray-100"> <div class="py-1 px-2 flex dark:text-gray-100">
<input <input
type="text" type="text"
id="floating-message-input" id="floating-message-input"
class="bg-transparent outline-hidden w-full flex-1 text-[13px]" class="bg-transparent outline-hidden w-full flex-1 text-[0.8125rem]"
placeholder={$i18n.t('Suggest a change')} placeholder={$i18n.t('Suggest a change')}
bind:value={inputValue} bind:value={inputValue}
autocomplete="off" autocomplete="off"
@@ -73,7 +73,7 @@
</div> </div>
<hr class="border-gray-50/30 dark:border-gray-800/30 my-0.5 mx-1" /> <hr class="border-gray-50/30 dark:border-gray-800/30 my-0.5 mx-1" />
<button <button
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
onRegenerate(); onRegenerate();
show = false; show = false;
@@ -98,7 +98,7 @@
</button> </button>
<button <button
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
onRegenerate($i18n.t('Add Details')); onRegenerate($i18n.t('Add Details'));
}} }}
@@ -108,7 +108,7 @@
</button> </button>
<button <button
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
onRegenerate($i18n.t('More Concise')); onRegenerate($i18n.t('More Concise'));
}} }}
@@ -59,7 +59,7 @@
</div> </div>
{#if idx !== history.length - 1} {#if idx !== history.length - 1}
<div <div
class="w-[0.5px] ml-[6.5px] h-[calc(100%-14px)] bg-gray-300 dark:bg-gray-700" class="w-[0.03125rem] ml-[0.40625rem] h-[calc(100%-14px)] bg-gray-300 dark:bg-gray-700"
/> />
{/if} {/if}
</div> </div>
@@ -52,7 +52,7 @@
role="option" role="option"
aria-selected={isSelected} aria-selected={isSelected}
aria-label={$i18n.t('Select {{modelName}} model', { modelName: item.label })} aria-label={$i18n.t('Select {{modelName}} model', { modelName: item.label })}
class="group/item flex h-8 w-full cursor-pointer select-none items-center rounded-xl px-2 text-left text-[13px] font-normal text-gray-700 outline-hidden transition-colors duration-75 hover:bg-gray-50/40 dark:text-gray-100 dark:hover:bg-gray-800/40 {index === class="group/item flex h-8 w-full cursor-pointer select-none items-center rounded-xl px-2 text-left text-[0.8125rem] font-normal text-gray-700 outline-hidden transition-colors duration-75 hover:bg-gray-50/40 dark:text-gray-100 dark:hover:bg-gray-800/40 {index ===
selectedModelIdx && !compareEnabled selectedModelIdx && !compareEnabled
? 'bg-gray-50/70 dark:bg-gray-800/60' ? 'bg-gray-50/70 dark:bg-gray-800/60'
: ''} {isSelected ? 'bg-gray-50/70 dark:bg-gray-800/60' : ''}" : ''} {isSelected ? 'bg-gray-50/70 dark:bg-gray-800/60' : ''}"
@@ -121,7 +121,7 @@
}`} }`}
className="self-end" className="self-end"
> >
<span class="line-clamp-1 text-[11px] font-normal text-gray-500 dark:text-gray-400" <span class="line-clamp-1 text-[0.6875rem] font-normal text-gray-500 dark:text-gray-400"
>{item.model.ollama?.details?.parameter_size ?? ''}</span >{item.model.ollama?.details?.parameter_size ?? ''}</span
> >
</Tooltip> </Tooltip>
@@ -44,11 +44,11 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[210px] z-[9999999]"> <DropdownMenu className="min-w-[13.125rem] z-[9999999]">
{#if model?.preset || model?.info?.base_model_id ? model?.info?.user_id === $user?.id : $user?.role === 'admin'} {#if model?.preset || model?.info?.base_model_id ? model?.info?.user_id === $user?.id : $user?.role === 'admin'}
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition"
on:click={(e) => { on:click={(e) => {
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
@@ -69,7 +69,7 @@
{#if $user?.role === 'admin' && model?.owned_by === 'ollama'} {#if $user?.role === 'admin' && model?.owned_by === 'ollama'}
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition"
on:click={(e) => { on:click={(e) => {
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
@@ -103,7 +103,7 @@
<button <button
type="button" type="button"
aria-pressed={($settings?.pinnedModels ?? []).includes(model?.id)} aria-pressed={($settings?.pinnedModels ?? []).includes(model?.id)}
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition"
on:click={(e) => { on:click={(e) => {
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
@@ -129,7 +129,7 @@
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition"
on:click={(e) => { on:click={(e) => {
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
@@ -148,7 +148,7 @@
<button <button
type="button" type="button"
class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class="select-none flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[0.8125rem] hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition"
on:click={(e) => { on:click={(e) => {
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
@@ -799,7 +799,7 @@
<input <input
id="model-search-input" id="model-search-input"
bind:value={searchValue} bind:value={searchValue}
class="w-full bg-transparent text-[13px] font-normal outline-hidden placeholder:text-gray-400 dark:placeholder:text-gray-500" class="w-full bg-transparent text-[0.8125rem] font-normal outline-hidden placeholder:text-gray-400 dark:placeholder:text-gray-500"
placeholder={searchPlaceholder} placeholder={searchPlaceholder}
autocomplete="off" autocomplete="off"
aria-label={$i18n.t('Search In Models')} aria-label={$i18n.t('Search In Models')}
@@ -853,8 +853,8 @@
placeholder={$i18n.t('All')} placeholder={$i18n.t('All')}
align="end" align="end"
items={modelFilterItems} items={modelFilterItems}
triggerClass="relative flex h-[1.375rem] max-w-32 items-center gap-0.5 rounded-xl bg-transparent px-1.5 text-[11px] font-normal text-gray-400 transition-colors duration-100 hover:bg-gray-50/40 hover:text-gray-600 dark:text-gray-500 dark:hover:bg-gray-800/40 dark:hover:text-gray-300" triggerClass="relative flex h-[1.375rem] max-w-32 items-center gap-0.5 rounded-xl bg-transparent px-1.5 text-[0.6875rem] font-normal text-gray-400 transition-colors duration-100 hover:bg-gray-50/40 hover:text-gray-600 dark:text-gray-500 dark:hover:bg-gray-800/40 dark:hover:text-gray-300"
itemClass="flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] capitalize hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100" itemClass="flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] capitalize hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100"
contentClass="min-w-36 model-selector-child-menu" contentClass="min-w-36 model-selector-child-menu"
onChange={setModelFilter} onChange={setModelFilter}
/> />
@@ -875,12 +875,12 @@
> >
{$i18n.t('No models available')} {$i18n.t('No models available')}
</div> </div>
<div class="w-full text-[11px] leading-3.5 text-gray-500 dark:text-gray-400"> <div class="w-full text-[0.6875rem] leading-3.5 text-gray-500 dark:text-gray-400">
{$i18n.t('Connect to an AI provider to start chatting')} {$i18n.t('Connect to an AI provider to start chatting')}
</div> </div>
<button <button
type="button" type="button"
class="mt-3 rounded-lg px-0 py-1 text-[11px] font-normal leading-none text-gray-600 underline-offset-2 transition-colors duration-100 hover:text-gray-800 hover:underline focus:outline-hidden focus:underline dark:text-gray-300 dark:hover:text-gray-100" class="mt-3 rounded-lg px-0 py-1 text-[0.6875rem] font-normal leading-none text-gray-600 underline-offset-2 transition-colors duration-100 hover:text-gray-800 hover:underline focus:outline-hidden focus:underline dark:text-gray-300 dark:hover:text-gray-100"
on:click={() => { on:click={() => {
show = false; show = false;
showSettings.set('admin:connections'); showSettings.set('admin:connections');
@@ -891,7 +891,7 @@
</div> </div>
{:else} {:else}
<div class=""> <div class="">
<div class="block px-2 py-1 text-[13px] text-gray-700 dark:text-gray-100"> <div class="block px-2 py-1 text-[0.8125rem] text-gray-700 dark:text-gray-100">
{$i18n.t('No results found')} {$i18n.t('No results found')}
</div> </div>
</div> </div>
@@ -940,7 +940,7 @@
placement="top-start" placement="top-start"
> >
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center rounded-xl px-2 text-[13px] font-normal text-gray-700 outline-hidden transition-colors duration-75 hover:bg-gray-50/40 dark:text-gray-100 dark:hover:bg-gray-800/40" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center rounded-xl px-2 text-[0.8125rem] font-normal text-gray-700 outline-hidden transition-colors duration-75 hover:bg-gray-50/40 dark:text-gray-100 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
pullModelHandler(); pullModelHandler();
}} }}
@@ -956,7 +956,7 @@
{#each selectionOnly ? [] : Object.keys($MODEL_DOWNLOAD_POOL) as model} {#each selectionOnly ? [] : Object.keys($MODEL_DOWNLOAD_POOL) as model}
<div <div
class="flex min-h-[1.6875rem] w-full cursor-pointer select-none justify-between rounded-xl px-2 text-[13px] font-normal text-gray-700 outline-hidden transition-colors duration-75 dark:text-gray-100" class="flex min-h-[1.6875rem] w-full cursor-pointer select-none justify-between rounded-xl px-2 text-[0.8125rem] font-normal text-gray-700 outline-hidden transition-colors duration-75 dark:text-gray-100"
> >
<div class="flex"> <div class="flex">
<div class="mr-2.5 translate-y-0.5"> <div class="mr-2.5 translate-y-0.5">
+3 -3
View File
@@ -118,7 +118,7 @@
{#if chat?.id} {#if chat?.id}
<div class="flex max-w-full min-w-0 items-center gap-2 mr-2"> <div class="flex max-w-full min-w-0 items-center gap-2 mr-2">
<div <div
class="min-w-0 truncate py-1 text-left text-[15px] font-normal text-gray-700 dark:text-gray-300" class="min-w-0 truncate py-1 text-left text-[0.9375rem] font-normal text-gray-700 dark:text-gray-300"
> >
{title || chat?.chat?.title || $i18n.t('New Chat')} {title || chat?.chat?.title || $i18n.t('New Chat')}
</div> </div>
@@ -153,7 +153,7 @@
{:else} {:else}
<div class="pointer-events-none invisible flex max-w-full min-w-0 items-center gap-2"> <div class="pointer-events-none invisible flex max-w-full min-w-0 items-center gap-2">
<div <div
class="min-w-0 truncate py-1 text-left text-[15px] font-normal text-gray-700 dark:text-gray-300" class="min-w-0 truncate py-1 text-left text-[0.9375rem] font-normal text-gray-700 dark:text-gray-300"
> >
{$i18n.t('New Chat')} {$i18n.t('New Chat')}
</div> </div>
@@ -162,7 +162,7 @@
</div> </div>
<div class="mr-1 flex flex-none items-center gap-2 self-center"> <div class="mr-1 flex flex-none items-center gap-2 self-center">
<!-- <div class="md:hidden flex self-center w-[1px] h-5 mx-2 bg-gray-300 dark:bg-stone-700" /> --> <!-- <div class="md:hidden flex self-center w-[0.0625rem] h-5 mx-2 bg-gray-300 dark:bg-stone-700" /> -->
{#if $user?.role === 'user' ? ($user?.permissions?.chat?.temporary ?? true) && !($user?.permissions?.chat?.temporary_enforced ?? false) : true} {#if $user?.role === 'user' ? ($user?.permissions?.chat?.temporary ?? true) && !($user?.permissions?.chat?.temporary_enforced ?? false) : true}
{#if !chat?.id} {#if !chat?.id}
@@ -232,7 +232,7 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="w-[170px] shadow-sm"> <DropdownMenu className="w-[10.625rem] shadow-sm">
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-lg bg-transparent px-2 text-xs hover:text-gray-900 disabled:cursor-default disabled:opacity-30 dark:hover:text-gray-100" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-lg bg-transparent px-2 text-xs hover:text-gray-900 disabled:cursor-default disabled:opacity-30 dark:hover:text-gray-100"
disabled={loading || chatCount === 0} disabled={loading || chatCount === 0}
@@ -201,7 +201,7 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="w-[170px] shadow-sm"> <DropdownMenu className="w-[10.625rem] shadow-sm">
<button <button
class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-lg bg-transparent px-2 text-xs hover:text-gray-900 disabled:cursor-default disabled:opacity-30 dark:hover:text-gray-100" class="flex h-[1.6875rem] w-full cursor-pointer select-none items-center gap-2 rounded-lg bg-transparent px-2 text-xs hover:text-gray-900 disabled:cursor-default disabled:opacity-30 dark:hover:text-gray-100"
type="button" type="button"
@@ -365,7 +365,7 @@
{#if entry} {#if entry}
<Tooltip content={tooltipFor(entry)}> <Tooltip content={tooltipFor(entry)}>
<div <div
class="h-full w-full rounded-[2px] {modelPalette(topItem(entry))[ class="h-full w-full rounded-[0.125rem] {modelPalette(topItem(entry))[
intensity(entry) intensity(entry)
]}" ]}"
aria-label={tooltipFor(entry)} aria-label={tooltipFor(entry)}
@@ -395,7 +395,7 @@
> >
{#each usage.top_models.slice(0, 6) as model} {#each usage.top_models.slice(0, 6) as model}
<div class="flex min-w-0 items-center gap-1.5"> <div class="flex min-w-0 items-center gap-1.5">
<span class="size-2 shrink-0 rounded-[2px] {modelPalette(model.model_id)[3]}" <span class="size-2 shrink-0 rounded-[0.125rem] {modelPalette(model.model_id)[3]}"
></span> ></span>
<span class="max-w-28 truncate">{modelName(model.model_id)}</span> <span class="max-w-28 truncate">{modelName(model.model_id)}</span>
</div> </div>
@@ -69,11 +69,11 @@
{tool?.name} {tool?.name}
</div> </div>
{#if status} {#if status}
<span class="text-[11px] {status.pill} shrink-0">{status.label}</span> <span class="text-[0.6875rem] {status.pill} shrink-0">{status.label}</span>
{/if} {/if}
{#if toolSpecs.length > 0} {#if toolSpecs.length > 0}
<span <span
class="inline-flex min-w-3 items-center justify-center text-center text-[11px] leading-none text-gray-500 dark:text-gray-400 shrink-0" class="inline-flex min-w-3 items-center justify-center text-center text-[0.6875rem] leading-none text-gray-500 dark:text-gray-400 shrink-0"
> >
{toolSpecs.length} {toolSpecs.length}
</span> </span>
+1 -1
View File
@@ -13,7 +13,7 @@
<div <div
class=" text-xs font-normal {classNames[type] ?? class=" text-xs font-normal {classNames[type] ??
classNames['info']} w-fit px-[5px] rounded-lg uppercase line-clamp-1 mr-0.5" classNames['info']} w-fit px-[0.3125rem] rounded-lg uppercase line-clamp-1 mr-0.5"
> >
{content} {content}
</div> </div>
+2 -2
View File
@@ -164,7 +164,7 @@
{:else if fallbackHtml} {:else if fallbackHtml}
<div bind:this={outerContainer} class="h-full overflow-auto overscroll-contain"> <div bind:this={outerContainer} class="h-full overflow-auto overscroll-contain">
<div <div
class="max-w-[816px] min-h-[1056px] my-4 mx-auto py-14 px-16 bg-white text-gray-900 shadow rounded-sm font-[Calibri,Arial,sans-serif] text-base leading-[1.45] [&_.docx-title]:m-0 [&_.docx-title]:mb-4 [&_.docx-title]:text-3xl [&_.docx-title]:leading-[1.2] [&_.docx-subtitle]:mt-[-0.5rem] [&_.docx-subtitle]:mb-5 [&_.docx-subtitle]:text-xl [&_.docx-subtitle]:text-gray-500 [&_.docx-caption]:text-center [&_.docx-caption]:text-sm [&_.docx-caption]:text-gray-500 [&_p]:mt-0 [&_p]:mb-[0.65rem] [&_img]:block [&_img]:max-w-full [&_img]:h-auto [&_img]:my-3 [&_img]:mx-auto [&_table]:w-full [&_table]:my-3 [&_table]:border-collapse [&_table]:font-[Calibri,Arial,sans-serif] [&_table]:text-[0.95rem] [&_td]:border [&_td]:border-gray-300/70 [&_td]:px-2 [&_td]:py-1.5 [&_td]:align-top [&_th]:border [&_th]:border-gray-300/70 [&_th]:px-2 [&_th]:py-1.5 [&_th]:align-top [&_blockquote]:my-4 [&_blockquote]:border-l-[3px] [&_blockquote]:border-gray-300 [&_blockquote]:pl-4 [&_blockquote]:text-gray-700" class="max-w-[51rem] min-h-[66rem] my-4 mx-auto py-14 px-16 bg-white text-gray-900 shadow rounded-sm font-[Calibri,Arial,sans-serif] text-base leading-[1.45] [&_.docx-title]:m-0 [&_.docx-title]:mb-4 [&_.docx-title]:text-3xl [&_.docx-title]:leading-[1.2] [&_.docx-subtitle]:mt-[-0.5rem] [&_.docx-subtitle]:mb-5 [&_.docx-subtitle]:text-xl [&_.docx-subtitle]:text-gray-500 [&_.docx-caption]:text-center [&_.docx-caption]:text-sm [&_.docx-caption]:text-gray-500 [&_p]:mt-0 [&_p]:mb-[0.65rem] [&_img]:block [&_img]:max-w-full [&_img]:h-auto [&_img]:my-3 [&_img]:mx-auto [&_table]:w-full [&_table]:my-3 [&_table]:border-collapse [&_table]:font-[Calibri,Arial,sans-serif] [&_table]:text-[0.95rem] [&_td]:border [&_td]:border-gray-300/70 [&_td]:px-2 [&_td]:py-1.5 [&_td]:align-top [&_th]:border [&_th]:border-gray-300/70 [&_th]:px-2 [&_th]:py-1.5 [&_th]:align-top [&_blockquote]:my-4 [&_blockquote]:border-l-[3px] [&_blockquote]:border-gray-300 [&_blockquote]:pl-4 [&_blockquote]:text-gray-700"
> >
<!-- eslint-disable-next-line svelte/no-at-html-tags --> <!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html fallbackHtml} {@html fallbackHtml}
@@ -205,7 +205,7 @@
</button> </button>
<button <button
type="button" type="button"
class="shrink-0 min-w-12 h-7 px-1.5 py-1 text-center text-[11px] font-normal text-gray-500 dark:text-gray-400 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 transition tabular-nums" class="shrink-0 min-w-12 h-7 px-1.5 py-1 text-center text-[0.6875rem] font-normal text-gray-500 dark:text-gray-400 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 transition tabular-nums"
on:click={resetView} on:click={resetView}
aria-label="Reset zoom" aria-label="Reset zoom"
> >
@@ -4,7 +4,7 @@
</script> </script>
<div <div
class={`rounded-xl! p-0.5! border border-gray-100 dark:border-gray-800 z-50 bg-white text-gray-900 dark:bg-gray-850 dark:text-white shadow-lg ${className} [&_button:hover]:bg-gray-50/40! dark:[&_button:hover]:bg-gray-800/40! [&_a:hover]:bg-gray-50/40! dark:[&_a:hover]:bg-gray-800/40! [&_button:hover]:text-gray-900 dark:[&_button:hover]:text-gray-100 [&_a:hover]:text-gray-900 dark:[&_a:hover]:text-gray-100 [&>button]:flex [&>button]:w-full [&>button]:h-[1.6875rem]! [&>button]:items-center [&>button]:gap-2! [&>button]:rounded-xl! [&>button]:bg-transparent [&>button]:px-2! [&>button]:text-[13px]! [&>button]:font-normal! [&>a]:flex [&>a]:w-full [&>a]:h-[1.6875rem]! [&>a]:items-center [&>a]:gap-2! [&>a]:rounded-xl! [&>a]:bg-transparent [&>a]:px-2! [&>a]:text-[13px]! [&>a]:font-normal! [&_button_svg]:size-3.5! [&_a_svg]:size-3.5! [&>hr]:my-0.5 [&>hr]:mx-1`} class={`rounded-xl! p-0.5! border border-gray-100 dark:border-gray-800 z-50 bg-white text-gray-900 dark:bg-gray-850 dark:text-white shadow-lg ${className} [&_button:hover]:bg-gray-50/40! dark:[&_button:hover]:bg-gray-800/40! [&_a:hover]:bg-gray-50/40! dark:[&_a:hover]:bg-gray-800/40! [&_button:hover]:text-gray-900 dark:[&_button:hover]:text-gray-100 [&_a:hover]:text-gray-900 dark:[&_a:hover]:text-gray-100 [&>button]:flex [&>button]:w-full [&>button]:h-[1.6875rem]! [&>button]:items-center [&>button]:gap-2! [&>button]:rounded-xl! [&>button]:bg-transparent [&>button]:px-2! [&>button]:text-[0.8125rem]! [&>button]:font-normal! [&>a]:flex [&>a]:w-full [&>a]:h-[1.6875rem]! [&>a]:items-center [&>a]:gap-2! [&>a]:rounded-xl! [&>a]:bg-transparent [&>a]:px-2! [&>a]:text-[0.8125rem]! [&>a]:font-normal! [&_button_svg]:size-3.5! [&_a_svg]:size-3.5! [&>hr]:my-0.5 [&>hr]:mx-1`}
{style} {style}
> >
<slot /> <slot />
@@ -30,8 +30,8 @@
{align} {align}
triggerClass={className triggerClass={className
? className ? className
: 'flex h-8 shrink-0 items-center gap-1.5 rounded-xl bg-transparent px-1.5 text-[13px] font-normal text-gray-700 transition placeholder-gray-400 outline-hidden hover:text-gray-900 focus:outline-hidden dark:text-gray-200 dark:hover:text-gray-100'} : 'flex h-8 shrink-0 items-center gap-1.5 rounded-xl bg-transparent px-1.5 text-[0.8125rem] font-normal text-gray-700 transition placeholder-gray-400 outline-hidden hover:text-gray-900 focus:outline-hidden dark:text-gray-200 dark:hover:text-gray-100'}
itemClass="flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100" itemClass="flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100"
onChange={(v) => { onChange={(v) => {
onChange(v); onChange(v);
}} }}
+2 -2
View File
@@ -171,14 +171,14 @@
<div class="mb-0.5 px-3 pt-2 pb-1.5"> <div class="mb-0.5 px-3 pt-2 pb-1.5">
<input <input
type="text" type="text"
class="w-full text-[13px] bg-transparent outline-hidden" class="w-full text-[0.8125rem] bg-transparent outline-hidden"
placeholder={$i18n.t('Search all emojis')} placeholder={$i18n.t('Search all emojis')}
bind:value={search} bind:value={search}
/> />
</div> </div>
<!-- Virtualized Emoji List --> <!-- Virtualized Emoji List -->
<div class="w-full flex justify-start h-96 overflow-y-auto px-2.5 pb-2.5 text-[13px]"> <div class="w-full flex justify-start h-96 overflow-y-auto px-2.5 pb-2.5 text-[0.8125rem]">
{#if emojiRows.length === 0} {#if emojiRows.length === 0}
<div class="text-center text-xs text-gray-500 dark:text-gray-400"> <div class="text-center text-xs text-gray-500 dark:text-gray-400">
{$i18n.t('No results')} {$i18n.t('No results')}
+1 -1
View File
@@ -158,7 +158,7 @@
> >
<button class="w-full py-1.5 pl-2 flex items-center gap-1.5 text-xs font-normal"> <button class="w-full py-1.5 pl-2 flex items-center gap-1.5 text-xs font-normal">
{#if chevron} {#if chevron}
<div class=" p-[1px]"> <div class=" p-[0.0625rem]">
{#if open} {#if open}
<ChevronDown className=" size-3" strokeWidth="2" /> <ChevronDown className=" size-3" strokeWidth="2" />
{:else} {:else}
+1 -1
View File
@@ -105,7 +105,7 @@
{#if open} {#if open}
<div use:portal bind:this={contentEl} transition:flyAndScale> <div use:portal bind:this={contentEl} transition:flyAndScale>
<div <div
class="rounded-2xl min-w-[170px] max-h-72 overflow-y-auto p-1 border border-gray-100 dark:border-gray-800 bg-white dark:bg-gray-850 dark:text-white shadow-lg" class="rounded-2xl min-w-[10.625rem] max-h-72 overflow-y-auto p-1 border border-gray-100 dark:border-gray-800 bg-white dark:bg-gray-850 dark:text-white shadow-lg"
> >
{#each items as item} {#each items as item}
<button <button
+1 -1
View File
@@ -309,7 +309,7 @@
</button> </button>
<button <button
type="button" type="button"
class="shrink-0 min-w-12 h-7 px-1.5 py-1 text-center text-[11px] font-normal text-gray-500 dark:text-gray-400 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 transition tabular-nums" class="shrink-0 min-w-12 h-7 px-1.5 py-1 text-center text-[0.6875rem] font-normal text-gray-500 dark:text-gray-400 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 transition tabular-nums"
on:click={resetView} on:click={resetView}
aria-label="Reset zoom" aria-label="Reset zoom"
> >
+3 -3
View File
@@ -15,7 +15,7 @@
{#snippet children({ pages })} {#snippet children({ pages })}
<div class="my-2 flex items-center"> <div class="my-2 flex items-center">
<Pagination.PrevButton <Pagination.PrevButton
class="mr-[25px] inline-flex size-8 items-center justify-center rounded-[9px] bg-transparent hover:bg-gray-50 dark:hover:bg-gray-850 active:scale-98 disabled:cursor-not-allowed disabled:text-gray-400 dark:disabled:text-gray-700 hover:disabled:bg-transparent dark:hover:disabled:bg-transparent" class="mr-[1.5625rem] inline-flex size-8 items-center justify-center rounded-[0.5625rem] bg-transparent hover:bg-gray-50 dark:hover:bg-gray-850 active:scale-98 disabled:cursor-not-allowed disabled:text-gray-400 dark:disabled:text-gray-700 hover:disabled:bg-transparent dark:hover:disabled:bg-transparent"
> >
<ChevronLeft className="size-4" strokeWidth="2" /> <ChevronLeft className="size-4" strokeWidth="2" />
</Pagination.PrevButton> </Pagination.PrevButton>
@@ -26,7 +26,7 @@
{:else} {:else}
<Pagination.Page <Pagination.Page
{page} {page}
class="inline-flex size-8 items-center justify-center rounded-[9px] bg-transparent hover:bg-gray-50 dark:hover:bg-gray-850 text-sm font-normal hover:bg-dark-10 active:scale-98 disabled:cursor-not-allowed disabled:opacity-50 hover:disabled:bg-transparent data-selected:bg-gray-50 data-selected:text-gray-700 data-selected:hover:bg-gray-100 dark:data-selected:bg-gray-850 dark:data-selected:text-gray-50 dark:data-selected:hover:bg-gray-800 transition" class="inline-flex size-8 items-center justify-center rounded-[0.5625rem] bg-transparent hover:bg-gray-50 dark:hover:bg-gray-850 text-sm font-normal hover:bg-dark-10 active:scale-98 disabled:cursor-not-allowed disabled:opacity-50 hover:disabled:bg-transparent data-selected:bg-gray-50 data-selected:text-gray-700 data-selected:hover:bg-gray-100 dark:data-selected:bg-gray-850 dark:data-selected:text-gray-50 dark:data-selected:hover:bg-gray-800 transition"
> >
{page.value} {page.value}
</Pagination.Page> </Pagination.Page>
@@ -34,7 +34,7 @@
{/each} {/each}
</div> </div>
<Pagination.NextButton <Pagination.NextButton
class="ml-[25px] inline-flex size-8 items-center justify-center rounded-[9px] bg-transparent hover:bg-gray-50 dark:hover:bg-gray-850 active:scale-98 disabled:cursor-not-allowed disabled:text-gray-400 dark:disabled:text-gray-700 hover:disabled:bg-transparent dark:hover:disabled:bg-transparent" class="ml-[1.5625rem] inline-flex size-8 items-center justify-center rounded-[0.5625rem] bg-transparent hover:bg-gray-50 dark:hover:bg-gray-850 active:scale-98 disabled:cursor-not-allowed disabled:text-gray-400 dark:disabled:text-gray-700 hover:disabled:bg-transparent dark:hover:disabled:bg-transparent"
> >
<ChevronRight className="size-4" strokeWidth="2" /> <ChevronRight className="size-4" strokeWidth="2" />
</Pagination.NextButton> </Pagination.NextButton>
+3 -3
View File
@@ -150,7 +150,7 @@
aria-current={safeSlide === index ? 'true' : undefined} aria-current={safeSlide === index ? 'true' : undefined}
> >
<span <span
class="pt-[7px] text-xs font-medium text-right {safeSlide === index class="pt-[0.4375rem] text-xs font-medium text-right {safeSlide === index
? 'text-gray-900 dark:text-gray-100' ? 'text-gray-900 dark:text-gray-100'
: 'text-gray-500 dark:text-gray-400'}">{index + 1}</span : 'text-gray-500 dark:text-gray-400'}">{index + 1}</span
> >
@@ -221,7 +221,7 @@
</svg> </svg>
</button> </button>
<span <span
class="shrink-0 min-w-12 text-center text-[11px] text-gray-500 dark:text-gray-400 tabular-nums" class="shrink-0 min-w-12 text-center text-[0.6875rem] text-gray-500 dark:text-gray-400 tabular-nums"
>{safeSlide + 1} / {slides.length}</span >{safeSlide + 1} / {slides.length}</span
> >
<button <button
@@ -265,7 +265,7 @@
</button> </button>
<button <button
type="button" type="button"
class="shrink-0 min-w-12 h-7 px-1.5 py-1 text-center text-[11px] font-normal text-gray-500 dark:text-gray-400 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 transition tabular-nums" class="shrink-0 min-w-12 h-7 px-1.5 py-1 text-center text-[0.6875rem] font-normal text-gray-500 dark:text-gray-400 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 transition tabular-nums"
on:click={resetView} on:click={resetView}
aria-label="Reset zoom" aria-label="Reset zoom"
> >
+2 -2
View File
@@ -22,14 +22,14 @@
export let labelClass = ''; export let labelClass = '';
/** CSS classes for the dropdown content container */ /** CSS classes for the dropdown content container */
export let contentClass = 'min-w-[170px]'; export let contentClass = 'min-w-[10.625rem]';
/** Max height for the dropdown content */ /** Max height for the dropdown content */
export let maxHeight = '18rem'; export let maxHeight = '18rem';
/** CSS classes for each item button */ /** CSS classes for each item button */
export let itemClass = export let itemClass =
'flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100'; 'flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[0.8125rem] hover:bg-gray-50/40 hover:text-gray-900 dark:hover:bg-gray-800/40 dark:hover:text-gray-100';
/** Alignment of the dropdown: 'start' | 'end' */ /** Alignment of the dropdown: 'start' | 'end' */
export let align = 'start'; export let align = 'start';
@@ -80,7 +80,7 @@
</button> </button>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[170px]"> <DropdownMenu className="min-w-[10.625rem]">
{#each visibleActions as action (action.id)} {#each visibleActions as action (action.id)}
{@const Icon = getActionIcon(action.id)} {@const Icon = getActionIcon(action.id)}
{#if action.href} {#if action.href}
+1 -1
View File
@@ -30,7 +30,7 @@
{id} {id}
aria-labelledby={ariaLabelledbyId || undefined} aria-labelledby={ariaLabelledbyId || undefined}
aria-label={ariaLabel || undefined} aria-label={ariaLabel || undefined}
class="relative h-4 min-h-4 w-7 shrink-0 cursor-pointer rounded-full mx-[1px] transition-colors duration-150 {($settings?.highContrastMode ?? class="relative h-4 min-h-4 w-7 shrink-0 cursor-pointer rounded-full mx-[0.0625rem] transition-colors duration-150 {($settings?.highContrastMode ??
false) false)
? 'focus:outline focus:outline-2 focus:outline-gray-800 focus:dark:outline-gray-200' ? 'focus:outline focus:outline-2 focus:outline-gray-800 focus:dark:outline-gray-200'
: 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-400 dark:focus-visible:outline-gray-500'} {state : 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-400 dark:focus-visible:outline-gray-500'} {state
+1 -1
View File
@@ -134,7 +134,7 @@
{#each filteredSuggestionTags as tag (tag)} {#each filteredSuggestionTags as tag (tag)}
<button <button
type="button" type="button"
class="flex w-full items-center rounded-xl px-2 py-[5px] text-left text-xs text-gray-700 transition-colors hover:bg-gray-50 dark:text-gray-200 dark:hover:bg-gray-800" class="flex w-full items-center rounded-xl px-2 py-[0.3125rem] text-left text-xs text-gray-700 transition-colors hover:bg-gray-50 dark:text-gray-200 dark:hover:bg-gray-800"
role="option" role="option"
on:mousedown={(event) => { on:mousedown={(event) => {
event.preventDefault(); event.preventDefault();
@@ -13,14 +13,14 @@
{#if tag} {#if tag}
{#if disabled} {#if disabled}
<span <span
class="flex items-center gap-1 px-1.5 py-[1px] rounded-full bg-gray-100/50 dark:bg-gray-800/50 border border-gray-100 dark:border-gray-800 text-gray-600 dark:text-gray-300 text-xs font-normal" class="flex items-center gap-1 px-1.5 py-[0.0625rem] rounded-full bg-gray-100/50 dark:bg-gray-800/50 border border-gray-100 dark:border-gray-800 text-gray-600 dark:text-gray-300 text-xs font-normal"
> >
<span class="line-clamp-1">{tag.name}</span> <span class="line-clamp-1">{tag.name}</span>
</span> </span>
{:else} {:else}
<button <button
type="button" type="button"
class="flex items-center gap-1 px-1.5 py-[1px] rounded-full bg-gray-100/50 dark:bg-gray-800/50 border border-gray-100 dark:border-gray-800 text-gray-600 dark:text-gray-300 text-xs font-normal hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors" class="flex items-center gap-1 px-1.5 py-[0.0625rem] rounded-full bg-gray-100/50 dark:bg-gray-800/50 border border-gray-100 dark:border-gray-800 text-gray-600 dark:text-gray-300 text-xs font-normal hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"
on:click={() => { on:click={() => {
onDelete(); onDelete();
}} }}
@@ -180,7 +180,7 @@
{#if args} {#if args}
<div> <div>
<div <div
class="text-[10px] uppercase tracking-wider font-normal text-gray-400 dark:text-gray-500 mb-1.5 px-1" class="text-[0.625rem] uppercase tracking-wider font-normal text-gray-400 dark:text-gray-500 mb-1.5 px-1"
> >
{$i18n.t('Input')} {$i18n.t('Input')}
</div> </div>
@@ -213,7 +213,7 @@
{#if isDone && result} {#if isDone && result}
<div> <div>
<div <div
class="text-[10px] uppercase tracking-wider font-normal text-gray-400 dark:text-gray-500 mb-1.5 px-1" class="text-[0.625rem] uppercase tracking-wider font-normal text-gray-400 dark:text-gray-500 mb-1.5 px-1"
> >
{$i18n.t('Output')} {$i18n.t('Output')}
</div> </div>
+14 -14
View File
@@ -290,9 +290,9 @@
<slot /> <slot />
<div slot="content"> <div slot="content">
<DropdownMenu className="select-none min-w-[200px] max-w-[200px] transition"> <DropdownMenu className="select-none min-w-[12.5rem] max-w-[12.5rem] transition">
<!-- <DropdownMenu.Item draggable="false" <!-- <DropdownMenu.Item draggable="false"
class="flex gap-2 items-center h-[1.6875rem] px-2 text-[13px] font-normal cursor-pointer dark:hover:bg-gray-800 rounded-xl" class="flex gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer dark:hover:bg-gray-800 rounded-xl"
on:click={async () => { on:click={async () => {
await showSettings.set(!$showSettings); await showSettings.set(!$showSettings);
}} }}
@@ -323,7 +323,7 @@
{#if scrollToTop} {#if scrollToTop}
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
scrollToTop(); scrollToTop();
}} }}
@@ -351,7 +351,7 @@
{#if ($artifactContents ?? []).length > 0} {#if ($artifactContents ?? []).length > 0}
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
id="chat-artifacts-button" id="chat-artifacts-button"
on:click={async () => { on:click={async () => {
await showControls.set(true); await showControls.set(true);
@@ -369,7 +369,7 @@
{#if !readOnly && !$temporaryChatEnabled && ($user?.role === 'admin' || ($user.permissions?.chat?.share ?? true))} {#if !readOnly && !$temporaryChatEnabled && ($user?.role === 'admin' || ($user.permissions?.chat?.share ?? true))}
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
id="chat-share-button" id="chat-share-button"
on:click={() => { on:click={() => {
shareHandler(); shareHandler();
@@ -385,7 +385,7 @@
<button <button
slot="trigger" slot="trigger"
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
> >
<Download className="size-3.5" strokeWidth="1.5" /> <Download className="size-3.5" strokeWidth="1.5" />
@@ -394,7 +394,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
downloadJSONExport(); downloadJSONExport();
}} }}
@@ -404,7 +404,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
downloadTxt(); downloadTxt();
}} }}
@@ -414,7 +414,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
downloadPdf(); downloadPdf();
}} }}
@@ -426,7 +426,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
id="chat-copy-button" id="chat-copy-button"
on:click={async () => { on:click={async () => {
const res = await copyToClipboard(await getChatAsText()).catch((e) => { const res = await copyToClipboard(await getChatAsText()).catch((e) => {
@@ -450,7 +450,7 @@
<button <button
slot="trigger" slot="trigger"
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
> >
<Folder className="size-3.5" strokeWidth="1.5" /> <Folder className="size-3.5" strokeWidth="1.5" />
@@ -460,7 +460,7 @@
{#if folder?.id} {#if folder?.id}
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 overflow-hidden rounded-xl px-2 text-[13px] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40" class="flex h-[1.6875rem] w-full items-center gap-2 overflow-hidden rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
moveChatHandler(chat.id, folder.id); moveChatHandler(chat.id, folder.id);
}} }}
@@ -478,7 +478,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
archiveChatHandler(); archiveChatHandler();
}} }}
@@ -489,7 +489,7 @@
<button <button
draggable="false" draggable="false"
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] cursor-pointer select-none 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] cursor-pointer select-none hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
on:click={() => { on:click={() => {
deleteChatHandler(); deleteChatHandler();
}} }}
+3 -3
View File
@@ -1162,7 +1162,7 @@
placement="bottom" placement="bottom"
> >
<button <button
class="flex size-[30px] justify-center items-center rounded-lg hover:bg-gray-50 dark:hover:bg-gray-900 transition {isWindows class="flex size-[1.875rem] justify-center items-center rounded-lg hover:bg-gray-50 dark:hover:bg-gray-900 transition {isWindows
? 'cursor-pointer' ? 'cursor-pointer'
: 'cursor-[w-resize]'}" : 'cursor-[w-resize]'}"
on:click={() => { on:click={() => {
@@ -1486,7 +1486,7 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[170px]"> <DropdownMenu className="min-w-[10.625rem]">
<button <button
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" 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}
@@ -1557,7 +1557,7 @@
name={$i18n.t('Pinned')} name={$i18n.t('Pinned')}
> >
<div <div
class="ml-3 pl-1 mt-[1px] flex flex-col overflow-y-auto scrollbar-hidden border-s border-gray-100 dark:border-gray-900 text-gray-700 dark:text-gray-300" class="ml-3 pl-1 mt-[0.0625rem] flex flex-col overflow-y-auto scrollbar-hidden border-s border-gray-100 dark:border-gray-900 text-gray-700 dark:text-gray-300"
> >
{#each $pinnedChats as chat, idx (`pinned-chat-${chat?.id ?? idx}`)} {#each $pinnedChats as chat, idx (`pinned-chat-${chat?.id ?? idx}`)}
<ChatItem <ChatItem
@@ -77,7 +77,7 @@
class=" w-full {className} rounded-xl flex relative group hover:bg-gray-100 dark:hover:bg-gray-900 {$page class=" w-full {className} rounded-xl flex relative group hover:bg-gray-100 dark:hover:bg-gray-900 {$page
.url.pathname === `/channels/${channel.id}` .url.pathname === `/channels/${channel.id}`
? 'bg-gray-100 dark:bg-gray-900 selected' ? 'bg-gray-100 dark:bg-gray-900 selected'
: ''} {channel?.type === 'dm' ? 'px-1 py-[3px]' : 'p-1'} {channel?.unread_count > 0 : ''} {channel?.type === 'dm' ? 'px-1 py-[0.1875rem]' : 'p-1'} {channel?.unread_count > 0
? 'font-normal dark:text-white text-black' ? 'font-normal dark:text-white text-black'
: ' dark:text-gray-400 text-gray-600'} cursor-pointer select-none" : ' dark:text-gray-400 text-gray-600'} cursor-pointer select-none"
> >
@@ -109,7 +109,7 @@
{#if channel?.type === 'dm'} {#if channel?.type === 'dm'}
{#if channel?.users} {#if channel?.users}
{@const channelMembers = channel.users.filter((u) => u.id !== $user?.id)} {@const channelMembers = channel.users.filter((u) => u.id !== $user?.id)}
<div class="flex ml-[1px] mr-0.5 relative"> <div class="flex ml-[0.0625rem] mr-0.5 relative">
{#each channelMembers.slice(0, 2) as u, index} {#each channelMembers.slice(0, 2) as u, index}
<img <img
src={`${WEBUI_API_BASE_URL}/users/${u.id}/profile/image`} src={`${WEBUI_API_BASE_URL}/users/${u.id}/profile/image`}
@@ -191,7 +191,7 @@
<div class="flex items-center"> <div class="flex items-center">
{#if channel?.unread_count > 0} {#if channel?.unread_count > 0}
<div <div
class="text-xs py-[1px] px-2 rounded-xl bg-gray-100 text-black dark:bg-gray-800 dark:text-white font-normal whitespace-nowrap" class="text-xs py-[0.0625rem] px-2 rounded-xl bg-gray-100 text-black dark:bg-gray-800 dark:text-white font-normal whitespace-nowrap"
> >
{new Intl.NumberFormat($i18n.locale, { {new Intl.NumberFormat($i18n.locale, {
notation: 'compact', notation: 'compact',
@@ -478,7 +478,7 @@
<DragGhost {x} {y}> <DragGhost {x} {y}>
<div class=" bg-black/80 backdrop-blur-2xl px-2 py-1 rounded-lg w-fit max-w-40"> <div class=" bg-black/80 backdrop-blur-2xl px-2 py-1 rounded-lg w-fit max-w-40">
<div class="flex items-center gap-1"> <div class="flex items-center gap-1">
<ChatIcon className=" size-[18px]" strokeWidth="1.5" /> <ChatIcon className=" size-[1.125rem]" strokeWidth="1.5" />
<div class=" text-xs text-white line-clamp-1"> <div class=" text-xs text-white line-clamp-1">
{title} {title}
</div> </div>
@@ -642,7 +642,7 @@
class="{showInlineActions class="{showInlineActions
? 'selected' ? 'selected'
: 'invisible group-hover:visible'} absolute {className === 'pr-2' : 'invisible group-hover:visible'} absolute {className === 'pr-2'
? 'right-[8px]' ? 'right-[0.5rem]'
: 'right-1'} inset-y-0 mr-1.5 flex items-center" : 'right-1'} inset-y-0 mr-1.5 flex items-center"
> >
{#if confirmEdit} {#if confirmEdit}
@@ -302,7 +302,7 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="select-none min-w-[200px] transition"> <DropdownMenu className="select-none min-w-[12.5rem] transition">
{#if $user?.role === 'admin' || ($user.permissions?.chat?.share ?? true)} {#if $user?.role === 'admin' || ($user.permissions?.chat?.share ?? true)}
<button <button
draggable="false" draggable="false"
@@ -46,7 +46,7 @@
</Tooltip> </Tooltip>
<div slot="content"> <div slot="content">
<DropdownMenu className="min-w-[170px]"> <DropdownMenu className="min-w-[10.625rem]">
<button <button
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" 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={() => {
@@ -788,7 +788,7 @@
<Emoji className="size-3.5" shortCode={folders[folderId].meta.icon} /> <Emoji className="size-3.5" shortCode={folders[folderId].meta.icon} />
</div> </div>
<div class="hidden group-hover:flex transition-all p-[1px]"> <div class="hidden group-hover:flex transition-all p-[0.0625rem]">
{#if open} {#if open}
<ChevronDown className=" size-3" strokeWidth="1.5" /> <ChevronDown className=" size-3" strokeWidth="1.5" />
{:else} {:else}
@@ -800,7 +800,7 @@
<FolderIcon className="size-3.5" strokeWidth="1.5" /> <FolderIcon className="size-3.5" strokeWidth="1.5" />
</div> </div>
<div class="hidden group-hover:flex transition-all p-[1px]"> <div class="hidden group-hover:flex transition-all p-[0.0625rem]">
{#if open} {#if open}
<ChevronDown className=" size-3" strokeWidth="1.5" /> <ChevronDown className=" size-3" strokeWidth="1.5" />
{:else} {:else}
@@ -890,7 +890,7 @@
<div slot="content" class="w-full"> <div slot="content" class="w-full">
{#if (folders[folderId]?.childrenIds ?? []).length > 0 || (chats ?? []).length > 0 || hasMoreChats} {#if (folders[folderId]?.childrenIds ?? []).length > 0 || (chats ?? []).length > 0 || hasMoreChats}
<div <div
class="ml-3 pl-1 mt-[1px] flex flex-col overflow-y-auto scrollbar-hidden border-s border-gray-100 dark:border-gray-900" class="ml-3 pl-1 mt-[0.0625rem] flex flex-col overflow-y-auto scrollbar-hidden border-s border-gray-100 dark:border-gray-900"
> >
{#if folders[folderId]?.childrenIds} {#if folders[folderId]?.childrenIds}
{@const children = folders[folderId]?.childrenIds {@const children = folders[folderId]?.childrenIds
Loaded 100 of 139 files, more files were not shown because too many files have changed in this diff. Show more