mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-15 09:31:21 +00:00
refac
This commit is contained in:
parent
948432b432
commit
b87e9358e5
1 changed files with 3 additions and 5 deletions
|
|
@ -62,7 +62,7 @@
|
|||
let largeScreen = false;
|
||||
let dragged = false;
|
||||
let mounted = false;
|
||||
let controlsWidth = 350;
|
||||
let controlsWidth = 300;
|
||||
let viewportWidth = 0;
|
||||
|
||||
// Tab state for Controls+Files panel
|
||||
|
|
@ -162,7 +162,7 @@
|
|||
};
|
||||
|
||||
onMount(() => {
|
||||
const mediaQuery = window.matchMedia('(min-width: 1024px)');
|
||||
const mediaQuery = window.matchMedia('(min-width: 768px)');
|
||||
mediaQuery.addEventListener('change', handleMediaQuery);
|
||||
handleMediaQuery(mediaQuery);
|
||||
|
||||
|
|
@ -347,10 +347,8 @@
|
|||
<ResizableSidePanel
|
||||
open={$showControls}
|
||||
bind:width={controlsWidth}
|
||||
minWidth={350}
|
||||
minWidth={300}
|
||||
minSiblingWidth={360}
|
||||
closeOnDragBelowMinWidth
|
||||
onClose={() => showControls.set(false)}
|
||||
storageKey="chatControlsSize"
|
||||
className="h-full z-10 bg-white dark:bg-gray-900"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue