From 9dd4df2ca91e3665152b6047800bd15931e80bc1 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 23 Nov 2025 17:29:11 +0100 Subject: [PATCH] Update terminal-panel.tsx --- AppImage/components/terminal-panel.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/AppImage/components/terminal-panel.tsx b/AppImage/components/terminal-panel.tsx index e9d8cfa..58e7cbb 100644 --- a/AppImage/components/terminal-panel.tsx +++ b/AppImage/components/terminal-panel.tsx @@ -367,8 +367,6 @@ export const TerminalPanel: React.FC = ({ websocketUrl, onCl scrollback: 2000, disableStdin: false, customGlyphs: true, - cols: isMobile ? 40 : layout === "grid" ? 60 : 120, - rows: isMobile ? 20 : layout === "grid" ? 20 : 40, theme: { background: "#000000", foreground: "#ffffff", @@ -450,8 +448,13 @@ export const TerminalPanel: React.FC = ({ websocketUrl, onCl } }) + let resizeTimeout: any = null + const handleResize = () => { - syncSizeWithBackend() + clearTimeout(resizeTimeout) + resizeTimeout = setTimeout(() => { + syncSizeWithBackend() + }, 150) } window.addEventListener("resize", handleResize)