fix: improve terminal sizing with delayed fit and flex layout
- Use double requestAnimationFrame before initial fitAddon.fit() to ensure DOM is settled - Add display: flex to mobile-terminal-content for proper child sizing - Add width: 100% to terminal-wrapper.mobile - Ensure terminal fills parent container both horizontally and vertically
This commit is contained in:
@@ -3074,6 +3074,8 @@ a.nav-item,
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Special Keys Strip */
|
||||
@@ -3200,6 +3202,7 @@ a.nav-item,
|
||||
border-radius: 0;
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.terminal-wrapper.mobile .terminal-header {
|
||||
|
||||
Reference in New Issue
Block a user