mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 22:05:19 +00:00
refac
This commit is contained in:
parent
19bc5f1c34
commit
1fc40ad5ee
1 changed files with 12 additions and 3 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
import { toast } from 'svelte-sonner';
|
import { toast } from 'svelte-sonner';
|
||||||
|
|
||||||
import { chatId, selectedFolder } from '$lib/stores';
|
import { chatId, mobile, selectedFolder, showSidebar } from '$lib/stores';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
deleteFolderById,
|
deleteFolderById,
|
||||||
|
|
@ -437,15 +437,24 @@
|
||||||
await goto('/');
|
await goto('/');
|
||||||
|
|
||||||
selectedFolder.set(folders[folderId]);
|
selectedFolder.set(folders[folderId]);
|
||||||
|
|
||||||
|
if ($mobile) {
|
||||||
|
showSidebar.set(!$showSidebar);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class="text-gray-300 dark:text-gray-600">
|
<button
|
||||||
|
class="text-gray-300 dark:text-gray-600"
|
||||||
|
on:click={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
}}
|
||||||
|
>
|
||||||
{#if open}
|
{#if open}
|
||||||
<ChevronDown className=" size-3" strokeWidth="2.5" />
|
<ChevronDown className=" size-3" strokeWidth="2.5" />
|
||||||
{:else}
|
{:else}
|
||||||
<ChevronRight className=" size-3" strokeWidth="2.5" />
|
<ChevronRight className=" size-3" strokeWidth="2.5" />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</button>
|
||||||
|
|
||||||
<div class="translate-y-[0.5px] flex-1 justify-start text-start line-clamp-1">
|
<div class="translate-y-[0.5px] flex-1 justify-start text-start line-clamp-1">
|
||||||
{#if edit}
|
{#if edit}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue