Skip to content

Commit

Permalink
Merge pull request #308 from x1unix/fix/autofit-terminal
Browse files Browse the repository at this point in the history
fix: refit terminal on font size change
  • Loading branch information
x1unix authored Jan 17, 2024
2 parents 7102bb3 + 33d61e0 commit 4359c1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/inspector/Console/Console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ export const Console: React.FC<Props> = ({fontFamily, fontSize, status, backend}
fontSize,
fontFamily,
};
}, [theme, terminal, fontFamily, fontSize]);
fitAddonRef.current.fit();
}, [theme, terminal, fitAddonRef, fontFamily, fontSize]);

// Rendering backend
useEffect(() => {
Expand Down

0 comments on commit 4359c1c

Please sign in to comment.