mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 08:40:58 +00:00
refac
This commit is contained in:
parent
4225591a26
commit
839dacc4a4
@ -292,7 +292,8 @@
|
|||||||
const currentSize = controlPane.getSize();
|
const currentSize = controlPane.getSize();
|
||||||
|
|
||||||
if (currentSize === 0) {
|
if (currentSize === 0) {
|
||||||
controlPane.resize(parseInt(localStorage?.chatControlsSize ?? '30'));
|
const size = parseInt(localStorage?.chatControlsSize ?? '30');
|
||||||
|
controlPane.resize(size ? size : 30);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
controlPane.resize(0);
|
controlPane.resize(0);
|
||||||
|
@ -122,7 +122,11 @@
|
|||||||
</PaneResizer>
|
</PaneResizer>
|
||||||
<Pane
|
<Pane
|
||||||
bind:pane
|
bind:pane
|
||||||
defaultSize={$showControls ? parseInt(localStorage?.chatControlsSize ?? '30') : 0}
|
defaultSize={$showControls
|
||||||
|
? parseInt(localStorage?.chatControlsSize ?? '30')
|
||||||
|
? parseInt(localStorage?.chatControlsSize ?? '30')
|
||||||
|
: 30
|
||||||
|
: 0}
|
||||||
onResize={(size) => {
|
onResize={(size) => {
|
||||||
console.log(size);
|
console.log(size);
|
||||||
if (size === 0) {
|
if (size === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user