This commit is contained in:
Timothy J. Baek 2024-09-21 03:39:30 +02:00
parent 98928f6bd7
commit 5d848ad130
2 changed files with 2 additions and 6 deletions

View File

@ -121,14 +121,10 @@
</PaneResizer> </PaneResizer>
<Pane <Pane
bind:pane bind:pane
defaultSize={$showControls defaultSize={$showControls ? parseInt(localStorage.getItem('chat-controls-size') || '35') : 0}
? Math.max(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);
} else if (size < 35) {
pane.resize(0);
} else { } else {
if (!$showControls) { if (!$showControls) {
showControls.set(true); showControls.set(true);

View File

@ -116,7 +116,7 @@
if (controlPane) { if (controlPane) {
if ($showControls) { if ($showControls) {
controlPane.resize( controlPane.resize(
Math.max(parseInt(localStorage.getItem('chat-controls-size') || '35'), 35) parseInt(localStorage.getItem('chat-controls-size') || '35')
); );
} else { } else {
controlPane.resize(0); controlPane.resize(0);