Skip to content

Commit 2e52947

Browse files
rabingaireCompuIves
authored andcommitted
fixed console empty space issue on server sandbox (codesandbox#1805)
1 parent aa4bb73 commit 2e52947

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

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

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

packages/app/src/app/components/Preview/DevTools/Terminal/styles.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,8 @@
158158
height: 1px;
159159
overflow: hidden;
160160
}
161+
162+
.terminal {
163+
height: 100%;
164+
width: 100%;
165+
}

0 commit comments

Comments
 (0)