From 5d848ad13069853213b4636d9dc9eef040e757ba Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 21 Sep 2024 03:39:30 +0200 Subject: [PATCH] refac --- src/lib/components/chat/ChatControls.svelte | 6 +----- src/lib/components/layout/Navbar.svelte | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/components/chat/ChatControls.svelte b/src/lib/components/chat/ChatControls.svelte index db53b73f6..925f19aa4 100644 --- a/src/lib/components/chat/ChatControls.svelte +++ b/src/lib/components/chat/ChatControls.svelte @@ -121,14 +121,10 @@ { if (size === 0) { showControls.set(false); - } else if (size < 35) { - pane.resize(0); } else { if (!$showControls) { showControls.set(true); diff --git a/src/lib/components/layout/Navbar.svelte b/src/lib/components/layout/Navbar.svelte index 7eec21609..8ac4c6027 100644 --- a/src/lib/components/layout/Navbar.svelte +++ b/src/lib/components/layout/Navbar.svelte @@ -116,7 +116,7 @@ if (controlPane) { if ($showControls) { controlPane.resize( - Math.max(parseInt(localStorage.getItem('chat-controls-size') || '35'), 35) + parseInt(localStorage.getItem('chat-controls-size') || '35') ); } else { controlPane.resize(0);