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