From ea2343551dae3bd1b61b436091d45df104f91cdf Mon Sep 17 00:00:00 2001 From: LukeGus Date: Wed, 4 Dec 2024 22:04:01 -0600 Subject: [PATCH] Nano zoom fix #9 --- frontend/src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 98cd2971..f54fb8ff 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -57,7 +57,7 @@ const App = () => { const newZoomFactor = Math.max(0.5, Math.min(2, containerHeight / 300)); // Adjust this logic as needed if (zoomFactor !== newZoomFactor) { setZoomFactor(newZoomFactor); - terminal.current.setOption('fontSize', 14 * newZoomFactor); // Adjust font size based on zoom + terminal.current.setFontSize(14 * newZoomFactor); // Corrected font size update } };