Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit b19e221

Browse files
committed
fix(plugins/plugin-client-common): pty output can have extra blank vertical space
1 parent ba5b425 commit b19e221

File tree

1 file changed

+7
-5
lines changed
  • plugins/plugin-client-common/src/components/Views/Terminal/Block

1 file changed

+7
-5
lines changed

plugins/plugin-client-common/src/components/Views/Terminal/Block/Output.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,13 @@ export default class Output extends React.PureComponent<Props, State> {
235235
if (streamingOutput.every(_ => typeof _ === 'string')) {
236236
const combined = streamingOutput.join('')
237237
return (
238-
<div className="repl-result-like result-vertical" data-stream>
239-
<React.Suspense fallback={<div />}>
240-
<Ansi>{combined}</Ansi>
241-
</React.Suspense>
242-
</div>
238+
combined.length > 0 && (
239+
<div className="repl-result-like result-vertical" data-stream>
240+
<React.Suspense fallback={<div />}>
241+
<Ansi>{combined}</Ansi>
242+
</React.Suspense>
243+
</div>
244+
)
243245
)
244246
}
245247

0 commit comments

Comments
 (0)