Nano zoom fix #9
This commit is contained in:
@@ -57,7 +57,7 @@ const App = () => {
|
|||||||
const newZoomFactor = Math.max(0.5, Math.min(2, containerHeight / 300)); // Adjust this logic as needed
|
const newZoomFactor = Math.max(0.5, Math.min(2, containerHeight / 300)); // Adjust this logic as needed
|
||||||
if (zoomFactor !== newZoomFactor) {
|
if (zoomFactor !== newZoomFactor) {
|
||||||
setZoomFactor(newZoomFactor);
|
setZoomFactor(newZoomFactor);
|
||||||
terminal.current.setOption('fontSize', 14 * newZoomFactor); // Adjust font size based on zoom
|
terminal.current.setFontSize(14 * newZoomFactor); // Corrected font size update
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user