Skip to content

Commit ad0e259

Browse files
rabingaireCompuIves
authored andcommitted
Now Terminal does resize with it's container (codesandbox#1740)
1 parent 7b42a56 commit ad0e259

File tree

1 file changed

+4
-1
lines changed
  • packages/app/src/app/components/Preview/DevTools/Terminal

1 file changed

+4
-1
lines changed

packages/app/src/app/components/Preview/DevTools/Terminal/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ class TerminalComponent extends React.Component<Props, State> {
177177
const { height, hidden } = this.props;
178178

179179
return (
180-
<div ref={this.setupResizeObserver}>
180+
<div
181+
style={{ width: '100%', height: '100%' }}
182+
ref={this.setupResizeObserver}
183+
>
181184
{!hidden &&
182185
this.state.shells.length > 0 && (
183186
<ShellTabs

0 commit comments

Comments
 (0)