Skip to content

Commit 4064d39

Browse files
committed
fix(terminal): clip xterm canvas overflow during panel resize
The xterm canvas has fixed pixel dimensions set by fitAddon.fit(). During drag-resize the terminal content area shrinks but the canvas retains its old size, visually overflowing into the live preview. Add overflow: hidden to .terminal-content-area so the canvas is clipped instantly while the debounced fit adjusts it after the drag.
1 parent 2a37123 commit 4064d39

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/styles/Extn-Terminal.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@
362362
position: relative;
363363
background: var(--terminal-background);
364364
min-width: 0;
365+
overflow: hidden;
365366
}
366367

367368
.terminal-instance-container {

0 commit comments

Comments
 (0)