Skip to content

Commit 2e1f625

Browse files
committed
Editor works a little better on mobile
1 parent 672f58c commit 2e1f625

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

public/css/app.css

+10-5
Original file line numberDiff line numberDiff line change
@@ -211,21 +211,20 @@ code {
211211
display: flex;
212212
flex-direction: row;
213213
align-items: stretch;
214-
flex-wrap: wrap;
215214
background: rgb(255,255,255,0.9);
216215
}
217216

218217
.editor {
218+
flex-basis: 50%;
219219
flex-grow: 1;
220-
min-width: 300px;
221220
}
222221

223222
.right {
224-
min-width: 200px;
225-
width: 50%;
226223
display: flex;
224+
flex-basis: 50%;
227225
flex-direction: column;
228-
height: 100%;
226+
max-height: 100%;
227+
min-height: 0;
229228
}
230229

231230
.console {
@@ -248,3 +247,9 @@ code {
248247
flex-direction: row;
249248
gap: 2rem;
250249
}
250+
251+
@media (width <= 600px) {
252+
.editor-container {
253+
flex-direction: column;
254+
}
255+
}

views/play.html

-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ <h4>Oops, your entry is incorrect</h4>
8282
<div class="right">
8383
<div class="controls">
8484
<button type="submit" class="btn btn-lg btn-info" id="submit">Submit Entry</button>
85-
<div>
86-
Write your code in the editor. Hit "Submit Entry" to submit your entry to the leaderboard. Use the test field to try out your code and the results will appear below. If you reload the page we will remember the last code you entered.
87-
</div>
8885
</div>
8986
<div id="console" class="console"></div>
9087
<div class="test-container">

0 commit comments

Comments
 (0)