Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 967a346

Browse files
committed
🚑 Fix #291
1 parent e9e4dcd commit 967a346

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/assets/css/main_shell.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,27 @@ div#main_shell_innercontainer, div#main_shell_innercontainer pre {
8989
div#main_shell_innercontainer pre {
9090
z-index: -999;
9191
opacity: 0;
92-
position: absolute;
92+
position: relative;
9393
}
9494

9595
div#main_shell_innercontainer pre.active {
9696
z-index: inherit;
9797
opacity: 1;
9898
}
9999

100+
div#main_shell_innercontainer pre#terminal1 {
101+
top: -100%;
102+
}
103+
div#main_shell_innercontainer pre#terminal2 {
104+
top: -200%;
105+
}
106+
div#main_shell_innercontainer pre#terminal3 {
107+
top: -300%;
108+
}
109+
div#main_shell_innercontainer pre#terminal4 {
110+
top: -400%;
111+
}
112+
100113
.terminal .xterm-viewport {
101114
overflow: hidden;
102115
cursor: default;

src/classes/terminal.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class Terminal {
162162
this.fit = () => {
163163
this.term.fit();
164164
setTimeout(() => {
165-
this.resize(this.term.cols+1, this.term.rows-1);
165+
this.resize(this.term.cols+1, this.term.rows+1);
166166
}, 50);
167167
};
168168

0 commit comments

Comments
 (0)