mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 06:15:23 +00:00
refac
This commit is contained in:
parent
b70c0f36c0
commit
11dea8795b
3 changed files with 22 additions and 20 deletions
|
|
@ -138,7 +138,7 @@
|
||||||
>
|
>
|
||||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||||
<div
|
<div
|
||||||
class="w-full group rounded-md relative flex items-center justify-between hover:bg-gray-100 dark:hover:bg-gray-900 text-gray-500 dark:text-gray-500 transition"
|
class="w-full group rounded-lg relative flex items-center justify-between hover:bg-gray-100 dark:hover:bg-gray-900 text-gray-500 dark:text-gray-500 transition"
|
||||||
>
|
>
|
||||||
<button class="w-full py-1.5 pl-2 flex items-center gap-1.5 text-xs font-medium">
|
<button class="w-full py-1.5 pl-2 flex items-center gap-1.5 text-xs font-medium">
|
||||||
{#if chevron}
|
{#if chevron}
|
||||||
|
|
|
||||||
|
|
@ -1025,24 +1025,26 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if folders}
|
{#if folders}
|
||||||
<Folders
|
<div class="mb-1">
|
||||||
{folders}
|
<Folders
|
||||||
{shiftKey}
|
{folders}
|
||||||
onDelete={(folderId) => {
|
{shiftKey}
|
||||||
selectedFolder.set(null);
|
onDelete={(folderId) => {
|
||||||
initChatList();
|
selectedFolder.set(null);
|
||||||
}}
|
initChatList();
|
||||||
on:update={() => {
|
}}
|
||||||
initChatList();
|
on:update={() => {
|
||||||
}}
|
initChatList();
|
||||||
on:import={(e) => {
|
}}
|
||||||
const { folderId, items } = e.detail;
|
on:import={(e) => {
|
||||||
importChatHandler(items, false, folderId);
|
const { folderId, items } = e.detail;
|
||||||
}}
|
importChatHandler(items, false, folderId);
|
||||||
on:change={async () => {
|
}}
|
||||||
initChatList();
|
on:change={async () => {
|
||||||
}}
|
initChatList();
|
||||||
/>
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class=" flex-1 flex flex-col overflow-y-auto scrollbar-hidden">
|
<div class=" flex-1 flex flex-col overflow-y-auto scrollbar-hidden">
|
||||||
|
|
|
||||||
|
|
@ -427,7 +427,7 @@
|
||||||
<div class="w-full group">
|
<div class="w-full group">
|
||||||
<button
|
<button
|
||||||
id="folder-{folderId}-button"
|
id="folder-{folderId}-button"
|
||||||
class="relative w-full py-1.5 px-2 rounded-md flex items-center gap-1.5 text-xs text-gray-500 dark:text-gray-500 font-medium hover:bg-gray-100 dark:hover:bg-gray-900 transition {$selectedFolder?.id ===
|
class="relative w-full py-1.5 px-2 rounded-lg flex items-center gap-1.5 text-xs text-gray-500 dark:text-gray-500 font-medium hover:bg-gray-100 dark:hover:bg-gray-900 transition {$selectedFolder?.id ===
|
||||||
folderId
|
folderId
|
||||||
? 'bg-gray-100 dark:bg-gray-900'
|
? 'bg-gray-100 dark:bg-gray-900'
|
||||||
: ''}"
|
: ''}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue