ac9f7a9299
The desktop terminal page sometimes grew an outer scrollbar because the terminal instance/wrapper/container chain lacked height constraints. Without min/max-height enforcement, xterm.js's internal viewport could expand its parent flex/grid track past the available space. - Add overflow: hidden to .terminal-page. - Add max-height: 100% and overflow: hidden to .terminal-instance. - Add max-height: 100% to .terminal-wrapper. - Add min-height: 0 to .terminal-container. - Constrain .xterm-viewport to max-height/width 100% so it fills but never exceeds its container. Quality gates: npm run typecheck, npm run lint, npm test -- --run (87 passed). Refs: openspec/changes/fix-terminal-container-overflow
816 B
816 B
Fix Terminal Container Overflow on Desktop — Tasks
- Discard debug
terminal.tsxchanges fromdebug/mobile-terminal-scroll. - Create focused branch
fix/terminal-container-overflowfromdev. - Update
utilities.cssto prevent terminal container from overflowing its flex/grid track:.terminal-page: addoverflow: hidden..terminal-instance: addmax-height: 100%andoverflow: hidden..terminal-wrapper: addmax-height: 100%..terminal-container: addmin-height: 0..terminal-container .xterm-viewport: addmax-height: 100% !importantandwidth: 100% !important.
- Run
npm run typecheckandnpm run lintinapps/web. - Run
npm test -- --runinapps/web(87 passed). - Update project maps for changed files.