This commit is contained in:
Timothy J. Baek 2024-09-21 15:53:29 +02:00
parent 4225591a26
commit 839dacc4a4
2 changed files with 7 additions and 2 deletions

View File

@ -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);

View File

@ -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) {