Skip to content

Commit

Permalink
fix: shell height
Browse files Browse the repository at this point in the history
  • Loading branch information
topliceanurazvan committed Feb 17, 2023
1 parent 47dc511 commit 04262b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/organisms/Dashboard/Tableview/TerminalTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ export const TerminalTab = ({resourceId}: {resourceId: string}) => {
}
});
}, []);

useEffect(() => {
setTimeout(() => {
addonRef.current?.fit();
terminalRef.current?.focus();
}, 250);
}, []);

return (
<S.TerminalPaneContainer>
<S.TerminalContainer ref={terminalContainerRef} />
Expand Down

0 comments on commit 04262b5

Please sign in to comment.