2025-11-22 20:50:05 +01:00
|
|
|
/* Aggressively force remove all xterm.js internal padding and margins */
|
2025-11-22 20:41:36 +01:00
|
|
|
.xterm {
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0 !important;
|
2025-11-22 20:50:05 +01:00
|
|
|
/* Move content left to compensate for xterm's internal 2px padding */
|
|
|
|
|
position: relative;
|
|
|
|
|
left: -2px !important;
|
2025-11-22 20:41:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.xterm-viewport {
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0 !important;
|
2025-11-22 20:50:05 +01:00
|
|
|
left: -2px !important;
|
2025-11-22 20:41:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.xterm-screen {
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0 !important;
|
2025-11-22 20:50:05 +01:00
|
|
|
left: -2px !important;
|
2025-11-22 20:41:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.xterm-rows {
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0 !important;
|
2025-11-22 20:50:05 +01:00
|
|
|
left: -2px !important;
|
2025-11-22 20:41:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.xterm-helpers {
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-22 20:50:05 +01:00
|
|
|
/* Target the canvas element that has the hardcoded padding */
|
|
|
|
|
.xterm canvas {
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
left: -2px !important;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Ensure terminal container has no padding or overflow */
|
2025-11-22 20:41:36 +01:00
|
|
|
[class*="terminal-container"] {
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0 !important;
|
2025-11-22 20:50:05 +01:00
|
|
|
overflow: hidden !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Fix any potential scrollbar offset */
|
|
|
|
|
.xterm .xterm-viewport::-webkit-scrollbar {
|
|
|
|
|
width: 0px !important;
|
2025-11-22 20:41:36 +01:00
|
|
|
}
|