fix: remove conflicting CSS that broke terminal sizing

- Remove second .terminal-wrapper.mobile definition that overrode position:absolute
- Add flex display to .xterm for proper viewport filling
- Add position:relative to mobile terminal-container
- Remove manual dimension setting workaround from terminal.tsx
- Root cause: CSS specificity conflict caused FitAddon to read height=0
This commit is contained in:
Fusion
2026-05-24 15:02:40 +02:00
parent 5577e19782
commit 8f7e19fdb1
2 changed files with 11 additions and 17 deletions
+10 -8
View File
@@ -3204,12 +3204,21 @@ a.nav-item,
height: 100%;
padding: 0;
overflow: hidden;
position: relative;
}
/* xterm fills container */
.terminal-wrapper.mobile .terminal-container .xterm {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.terminal-wrapper.mobile .terminal-container .xterm-viewport {
flex: 1;
width: 100% !important;
height: 100% !important;
}
/* Special Keys Strip */
@@ -3331,14 +3340,7 @@ a.nav-item,
}
/* Terminal Component Updates */
.terminal-wrapper.mobile {
border: none;
border-radius: 0;
flex: 1;
min-height: 0;
width: 100%;
overflow: hidden;
}
/* Note: .terminal-wrapper.mobile is defined above with position: absolute to fill grid cell */
.terminal-wrapper.mobile .terminal-header {
display: none;