mirror of
https://github.com/open-webui/open-webui
synced 2025-04-10 15:45:45 +00:00
refac
This commit is contained in:
parent
cb81dfe4ba
commit
d3ef9d980b
src/lib/components/chat
@ -289,7 +289,11 @@
|
|||||||
if (controlPane && !$mobile) {
|
if (controlPane && !$mobile) {
|
||||||
try {
|
try {
|
||||||
if (value) {
|
if (value) {
|
||||||
controlPane.resize(parseInt(localStorage.getItem('chat-controls-size') || '35'));
|
controlPane.resize(
|
||||||
|
parseInt(localStorage.getItem('chat-controls-size') || '35')
|
||||||
|
? parseInt(localStorage.getItem('chat-controls-size') || '35')
|
||||||
|
: 35
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
controlPane.resize(0);
|
controlPane.resize(0);
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
largeScreen = true;
|
largeScreen = true;
|
||||||
} else {
|
} else {
|
||||||
largeScreen = false;
|
largeScreen = false;
|
||||||
|
pane = null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -121,7 +122,11 @@
|
|||||||
</PaneResizer>
|
</PaneResizer>
|
||||||
<Pane
|
<Pane
|
||||||
bind:pane
|
bind:pane
|
||||||
defaultSize={$showControls ? parseInt(localStorage.getItem('chat-controls-size') || '35') : 0}
|
defaultSize={$showControls
|
||||||
|
? parseInt(localStorage.getItem('chat-controls-size') || '35')
|
||||||
|
? parseInt(localStorage.getItem('chat-controls-size') || '35')
|
||||||
|
: 35
|
||||||
|
: 0}
|
||||||
onResize={(size) => {
|
onResize={(size) => {
|
||||||
if (size === 0) {
|
if (size === 0) {
|
||||||
showControls.set(false);
|
showControls.set(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user