@@ -125,6 +125,9 @@ function featureUpload($path, $file, $cwd) {
125
125
background: #333;
126
126
color: #eee;
127
127
font-family: monospace;
128
+ width: 100vw;
129
+ height: 100vh;
130
+ overflow: hidden;
128
131
}
129
132
130
133
*::-webkit-scrollbar-track {
@@ -145,16 +148,21 @@ function featureUpload($path, $file, $cwd) {
145
148
146
149
#shell {
147
150
background: #222;
148
- max-width: 80%;
149
151
box-shadow: 0 0 5px rgba(0, 0, 0, .3);
150
152
font-size: 10pt;
151
153
display: flex;
152
154
flex-direction: column;
153
155
align-items: stretch;
156
+ max-width: calc(100vw - 2 * var(--shell-margin));
157
+ max-height: calc(100vh - 2 * var(--shell-margin));
158
+ resize: both;
159
+ overflow: hidden;
160
+ width: 100%;
161
+ height: 100%;
162
+ margin: var(--shell-margin) auto;
154
163
}
155
164
156
165
#shell-content {
157
- height: 80vh;
158
166
overflow: auto;
159
167
padding: 5px;
160
168
white-space: pre-wrap;
@@ -167,14 +175,13 @@ function featureUpload($path, $file, $cwd) {
167
175
text-align: center;
168
176
}
169
177
170
- @media (min-width: 991px) {
171
- html, body {
172
- width: 100%;
173
- max-width: none;
174
- }
175
- #shell {
176
- width: 80%;
177
- margin: 50px auto 0 auto;
178
+ :root {
179
+ --shell-margin: 25px;
180
+ }
181
+
182
+ @media (min-width: 1200px) {
183
+ :root {
184
+ --shell-margin: 50px !important;
178
185
}
179
186
}
180
187
@@ -184,15 +191,11 @@ function featureUpload($path, $file, $cwd) {
184
191
font-size: 6px;
185
192
margin: -25px 0;
186
193
}
187
-
188
- html, body, #shell {
189
- height: 100%;
190
- width: 100%;
191
- max-width: none;
194
+ :root {
195
+ --shell-margin: 0 !important;
192
196
}
193
-
194
197
#shell {
195
- margin-top: 0 ;
198
+ resize: none ;
196
199
}
197
200
}
198
201
@@ -221,6 +224,7 @@ function featureUpload($path, $file, $cwd) {
221
224
display: flex;
222
225
box-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
223
226
border-top: rgba(255, 255, 255, .05) solid 1px;
227
+ padding: 10px 0;
224
228
}
225
229
226
230
#shell-input > label {
0 commit comments