refac
This commit is contained in:
1 parent
263bbc77d8
commit
254888cf15
24 files changed
+236
-284
No files matched your search
@@ -453,8 +453,7 @@
|
||||
{#if confirmEdit}
|
||||
<div
|
||||
id="sidebar-chat-item"
|
||||
class=" w-full flex justify-between rounded-xl px-[11px] py-[6px] {id === $chatId ||
|
||||
confirmEdit
|
||||
class=" w-full flex justify-between rounded-xl px-2 py-[6px] {id === $chatId || confirmEdit
|
||||
? ($settings?.highContrastMode ?? false)
|
||||
? 'bg-gray-100 dark:bg-gray-800 selected'
|
||||
: 'bg-gray-100 dark:bg-gray-900 selected'
|
||||
@@ -493,8 +492,7 @@
|
||||
{:else}
|
||||
<a
|
||||
id="sidebar-chat-item"
|
||||
class=" w-full flex justify-between rounded-xl px-[11px] py-[6px] {id === $chatId ||
|
||||
confirmEdit
|
||||
class=" w-full flex justify-between rounded-xl px-2 py-[6px] {id === $chatId || confirmEdit
|
||||
? ($settings?.highContrastMode ?? false)
|
||||
? 'bg-gray-100 dark:bg-gray-800 selected'
|
||||
: 'bg-gray-100 dark:bg-gray-900 selected'
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
}}
|
||||
>
|
||||
<a
|
||||
class="grow flex items-center space-x-2.5 rounded-xl px-2.5 py-[7px] group-hover:bg-gray-100 dark:group-hover:bg-gray-900 transition"
|
||||
class="grow flex items-center space-x-2 rounded-xl px-2 py-[7px] group-hover:bg-gray-100 dark:group-hover:bg-gray-900 transition"
|
||||
href="/?model={model?.id}"
|
||||
on:click={onClick}
|
||||
draggable="false"
|
||||
@@ -46,7 +46,7 @@
|
||||
</div>
|
||||
|
||||
<div class="flex self-center translate-y-[0.5px]">
|
||||
<div class=" self-center text-sm line-clamp-1">
|
||||
<div class=" self-center text-sm line-clamp-1">
|
||||
{model?.name ?? model.id}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
{#each sortedPinnedNotes as note (note.id)}
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div
|
||||
class="flex items-center text-gray-800 dark:text-gray-200 cursor-grab relative group rounded-xl px-2.5 py-1.5 hover:bg-gray-100 dark:hover:bg-gray-900 transition"
|
||||
class="flex items-center text-gray-800 dark:text-gray-200 cursor-grab relative group rounded-xl px-2 py-1.5 hover:bg-gray-100 dark:hover:bg-gray-900 transition"
|
||||
data-id={note.id}
|
||||
>
|
||||
<a
|
||||
|
||||
Reference in new issue
Block a user