@@ -289,7 +289,11 @@
if (controlPane && !$mobile) {
try {
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 {
controlPane.resize(0);
}
@@ -40,6 +40,7 @@
largeScreen = true;
largeScreen = false;
+ pane = null;
};
@@ -121,7 +122,11 @@
</PaneResizer>
<Pane
bind:pane
- defaultSize={$showControls ? parseInt(localStorage.getItem('chat-controls-size') || '35') : 0}
+ defaultSize={$showControls
+ : 0}
onResize={(size) => {
if (size === 0) {
showControls.set(false);