This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-23 13:36:35 -04:00
1 parent dc4b828852
commit 3026ac64a2
1 file changed
+19 -20
+19 -20
View File
@@ -826,7 +826,7 @@
aria-label={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')} aria-label={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}
> >
<div <div
class=" self-center flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50/40 dark:group-hover:bg-gray-800/40" class=" self-center flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900"
> >
<img <img
src="{WEBUI_BASE_URL}/static/favicon.png" src="{WEBUI_BASE_URL}/static/favicon.png"
@@ -857,7 +857,7 @@
aria-label={$i18n.t('New Chat')} aria-label={$i18n.t('New Chat')}
> >
<div <div
class=" self-center flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50/40 dark:group-hover:bg-gray-800/40" class=" self-center flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900"
> >
<EditPencilIcon className="size-4" strokeWidth="1.5" /> <EditPencilIcon className="size-4" strokeWidth="1.5" />
</div> </div>
@@ -879,7 +879,7 @@
aria-label={$i18n.t('Search')} aria-label={$i18n.t('Search')}
> >
<div <div
class=" self-center flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50/40 dark:group-hover:bg-gray-800/40" class=" self-center flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900"
> >
<SearchIcon className="size-4" strokeWidth="1.5" /> <SearchIcon className="size-4" strokeWidth="1.5" />
</div> </div>
@@ -893,10 +893,7 @@
<div class=""> <div class="">
<Tooltip content={$i18n.t(meta.label)} placement="right"> <Tooltip content={$i18n.t(meta.label)} placement="right">
<a <a
class=" cursor-pointer flex size-8 items-center justify-center transition group {itemId === class=" cursor-pointer flex size-8 items-center justify-center transition group"
activeMenuItemId
? 'text-gray-900 dark:text-gray-100'
: ''}"
href={meta.href} href={meta.href}
on:click={async (e) => { on:click={async (e) => {
e.stopImmediatePropagation(); e.stopImmediatePropagation();
@@ -910,8 +907,10 @@
<div <div
class=" self-center flex size-[30px] items-center justify-center rounded-lg transition {itemId === class=" self-center flex size-[30px] items-center justify-center rounded-lg transition {itemId ===
activeMenuItemId activeMenuItemId
? 'bg-gray-100/80 dark:bg-gray-850/50' ? ($settings?.highContrastMode ?? false)
: 'group-hover:bg-gray-50/40 dark:group-hover:bg-gray-800/40'}" ? 'bg-black/[0.035] dark:bg-white/[0.06]'
: 'bg-black/[0.035] dark:bg-white/[0.045]'
: 'group-hover:bg-gray-50 dark:group-hover:bg-gray-900'}"
> >
{#if itemId === 'notes'} {#if itemId === 'notes'}
<NotesIcon className="size-4" strokeWidth="1.5" /> <NotesIcon className="size-4" strokeWidth="1.5" />
@@ -944,7 +943,7 @@
aria-label={$i18n.t('User menu')} aria-label={$i18n.t('User menu')}
> >
<div <div
class="self-center relative flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50/40 dark:group-hover:bg-gray-800/40" class="self-center relative flex size-[30px] items-center justify-center rounded-lg transition group-hover:bg-gray-50 dark:group-hover:bg-gray-900"
> >
<img <img
src={`${WEBUI_API_BASE_URL}/users/${$user?.id}/profile/image`} src={`${WEBUI_API_BASE_URL}/users/${$user?.id}/profile/image`}
@@ -999,7 +998,7 @@
class="sidebar px-1 pt-1.5 pb-1 flex justify-between space-x-1 text-gray-600 dark:text-gray-400 sticky top-0 z-10 -mb-2" class="sidebar px-1 pt-1.5 pb-1 flex justify-between space-x-1 text-gray-600 dark:text-gray-400 sticky top-0 z-10 -mb-2"
> >
<a <a
class="flex items-center rounded-xl size-8.5 h-full justify-center hover:bg-gray-50/60 dark:hover:bg-gray-800/40 transition no-drag-region" class="flex items-center rounded-xl size-8.5 h-full justify-center hover:bg-gray-50 dark:hover:bg-gray-900 transition no-drag-region"
href="/" href="/"
draggable="false" draggable="false"
on:click={newChatHandler} on:click={newChatHandler}
@@ -1025,7 +1024,7 @@
placement="bottom" placement="bottom"
> >
<button <button
class="flex size-[30px] justify-center items-center rounded-lg hover:bg-gray-50/60 dark:hover:bg-gray-800/40 transition {isWindows class="flex size-[30px] 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={() => {
@@ -1060,7 +1059,7 @@
<div class="px-1 flex justify-center text-gray-700 dark:text-gray-300"> <div class="px-1 flex justify-center text-gray-700 dark:text-gray-300">
<a <a
id="sidebar-new-chat-button" id="sidebar-new-chat-button"
class="group grow flex items-center space-x-2 rounded-xl px-2 py-1.5 hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition outline-none" class="group grow flex items-center space-x-2 rounded-xl px-2 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-900 transition outline-none"
href="/" href="/"
draggable="false" draggable="false"
on:click={newChatHandler} on:click={newChatHandler}
@@ -1081,7 +1080,7 @@
<div class="px-1 flex justify-center text-gray-700 dark:text-gray-300"> <div class="px-1 flex justify-center text-gray-700 dark:text-gray-300">
<button <button
id="sidebar-search-button" id="sidebar-search-button"
class="group grow flex items-center space-x-2 rounded-xl px-2 py-1.5 hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition outline-none" class="group grow flex items-center space-x-2 rounded-xl px-2 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-900 transition outline-none"
on:click={() => { on:click={() => {
showSearch.set(true); showSearch.set(true);
}} }}
@@ -1104,17 +1103,17 @@
{@const meta = getMenuItemMeta(itemId)} {@const meta = getMenuItemMeta(itemId)}
{#if meta && isMenuItemVisible(itemId)} {#if meta && isMenuItemVisible(itemId)}
<div <div
class="px-1 flex justify-center {itemId === activeMenuItemId class="px-1 flex justify-center text-gray-700 dark:text-gray-300"
? 'text-gray-900 dark:text-gray-100'
: 'text-gray-700 dark:text-gray-300'}"
data-id={itemId} data-id={itemId}
> >
<a <a
id="sidebar-{itemId}-button" id="sidebar-{itemId}-button"
class="grow flex items-center space-x-2 rounded-xl px-2 py-1.5 transition {itemId === class="grow flex items-center space-x-2 rounded-xl px-2 py-1.5 transition {itemId ===
activeMenuItemId activeMenuItemId
? 'bg-gray-100/80 dark:bg-gray-850/50' ? ($settings?.highContrastMode ?? false)
: 'hover:bg-gray-50/40 dark:hover:bg-gray-800/40'}" ? 'bg-black/[0.035] dark:bg-white/[0.06]'
: 'bg-black/[0.035] dark:bg-white/[0.045]'
: 'hover:bg-gray-50 dark:hover:bg-gray-900'}"
href={meta.href} href={meta.href}
on:click={itemClickHandler} on:click={itemClickHandler}
draggable="false" draggable="false"
@@ -1527,7 +1526,7 @@
> >
<button <button
type="button" type="button"
class=" flex items-center rounded-xl py-1.5 px-1.5 w-full hover:bg-gray-50/40 dark:hover:bg-gray-800/40 transition" class=" flex items-center rounded-xl py-1.5 px-1.5 w-full hover:bg-gray-50 dark:hover:bg-gray-900 transition"
aria-label={$i18n.t('User menu')} aria-label={$i18n.t('User menu')}
> >
<div class=" self-center mr-3 relative flex-shrink-0"> <div class=" self-center mr-3 relative flex-shrink-0">