Skip to content

Commit 2a6347e

Browse files
committed
Merge branch 'FrancoisCapon-patch-2'
2 parents db2424b + 686ff39 commit 2a6347e

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

shell.php

+21-17
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ function featureUpload($path, $file, $cwd) {
125125
background: #333;
126126
color: #eee;
127127
font-family: monospace;
128+
width: 100vw;
129+
height: 100vh;
130+
overflow: hidden;
128131
}
129132

130133
*::-webkit-scrollbar-track {
@@ -145,16 +148,21 @@ function featureUpload($path, $file, $cwd) {
145148

146149
#shell {
147150
background: #222;
148-
max-width: 80%;
149151
box-shadow: 0 0 5px rgba(0, 0, 0, .3);
150152
font-size: 10pt;
151153
display: flex;
152154
flex-direction: column;
153155
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;
154163
}
155164

156165
#shell-content {
157-
height: 80vh;
158166
overflow: auto;
159167
padding: 5px;
160168
white-space: pre-wrap;
@@ -167,14 +175,13 @@ function featureUpload($path, $file, $cwd) {
167175
text-align: center;
168176
}
169177

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;
178185
}
179186
}
180187

@@ -184,15 +191,11 @@ function featureUpload($path, $file, $cwd) {
184191
font-size: 6px;
185192
margin: -25px 0;
186193
}
187-
188-
html, body, #shell {
189-
height: 100%;
190-
width: 100%;
191-
max-width: none;
194+
:root {
195+
--shell-margin: 0 !important;
192196
}
193-
194197
#shell {
195-
margin-top: 0;
198+
resize: none;
196199
}
197200
}
198201

@@ -221,6 +224,7 @@ function featureUpload($path, $file, $cwd) {
221224
display: flex;
222225
box-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
223226
border-top: rgba(255, 255, 255, .05) solid 1px;
227+
padding: 10px 0;
224228
}
225229

226230
#shell-input > label {

0 commit comments

Comments
 (0)