This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-01 03:29:44 -05:00
1 parent 4351c78b1e
commit 52ee5cb1b3
1 file changed
+19 -6
@@ -32,6 +32,7 @@
tags, tags,
selectedFolder, selectedFolder,
activeChatIds, activeChatIds,
settings,
user user
} from '$lib/stores'; } from '$lib/stores';
@@ -464,9 +465,13 @@
id="sidebar-chat-item" id="sidebar-chat-item"
class=" w-full flex justify-between rounded-xl px-[11px] py-[6px] {id === $chatId || class=" w-full flex justify-between rounded-xl px-[11px] py-[6px] {id === $chatId ||
confirmEdit confirmEdit
? 'bg-gray-100 dark:bg-gray-900 selected' ? ($settings?.highContrastMode ?? false)
? 'bg-gray-100 dark:bg-gray-800 selected'
: 'bg-gray-100 dark:bg-gray-900 selected'
: selected : selected
? 'bg-gray-100 dark:bg-gray-950 selected' ? ($settings?.highContrastMode ?? false)
? 'bg-gray-100 dark:bg-gray-900 selected'
: 'bg-gray-100 dark:bg-gray-950 selected'
: 'group-hover:bg-gray-100 dark:group-hover:bg-gray-950'} whitespace-nowrap text-ellipsis relative {generating : 'group-hover:bg-gray-100 dark:group-hover:bg-gray-950'} whitespace-nowrap text-ellipsis relative {generating
? 'cursor-not-allowed' ? 'cursor-not-allowed'
: ''}" : ''}"
@@ -500,9 +505,13 @@
id="sidebar-chat-item" id="sidebar-chat-item"
class=" w-full flex justify-between rounded-xl px-[11px] py-[6px] {id === $chatId || class=" w-full flex justify-between rounded-xl px-[11px] py-[6px] {id === $chatId ||
confirmEdit confirmEdit
? 'bg-gray-100 dark:bg-gray-900 selected' ? ($settings?.highContrastMode ?? false)
? 'bg-gray-100 dark:bg-gray-800 selected'
: 'bg-gray-100 dark:bg-gray-900 selected'
: selected : selected
? 'bg-gray-100 dark:bg-gray-950 selected' ? ($settings?.highContrastMode ?? false)
? 'bg-gray-100 dark:bg-gray-900 selected'
: 'bg-gray-100 dark:bg-gray-950 selected'
: ' group-hover:bg-gray-100 dark:group-hover:bg-gray-950'} whitespace-nowrap text-ellipsis" : ' group-hover:bg-gray-100 dark:group-hover:bg-gray-950'} whitespace-nowrap text-ellipsis"
href="/c/{id}" href="/c/{id}"
on:click={() => { on:click={() => {
@@ -585,9 +594,13 @@
id="sidebar-chat-item-menu" id="sidebar-chat-item-menu"
class=" class="
{id === $chatId || confirmEdit {id === $chatId || confirmEdit
? 'from-gray-100 dark:from-gray-900 selected' ? ($settings?.highContrastMode ?? false)
? 'from-gray-100 dark:from-gray-800 selected'
: 'from-gray-100 dark:from-gray-900 selected'
: selected : selected
? 'from-gray-100 dark:from-gray-950 selected' ? ($settings?.highContrastMode ?? false)
? 'from-gray-100 dark:from-gray-900 selected'
: 'from-gray-100 dark:from-gray-950 selected'
: 'invisible group-hover:visible from-gray-100 dark:from-gray-950'} : 'invisible group-hover:visible from-gray-100 dark:from-gray-950'}
absolute {className === 'pr-2' absolute {className === 'pr-2'
? 'right-[8px]' ? 'right-[8px]'