fix: prevent terminal component from exceeding its container
- Constrain .terminalContainer to its parent via position: relative; overflow: hidden - Force xterm canvas/viewport/screen to fill container height and width - Make terminal-page a flex column with height: 100% and min-height: 0 - Add dedicated styles/pages/terminal.css and import it in main.tsx Quality gates: typecheck, lint, build pass; 72/75 tests pass (3 pre-existing unrelated failures)
This commit is contained in:
@@ -67,12 +67,26 @@
|
||||
.terminalContainer {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.terminalContainer :global(.xterm) {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
height: 100% !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.terminalContainer :global(.xterm-viewport) {
|
||||
height: 100% !important;
|
||||
background: #1e1e1e !important;
|
||||
}
|
||||
|
||||
.terminalContainer :global(.xterm-screen) {
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
.terminalOverlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
|
||||
Reference in New Issue
Block a user