Skip to content

Commit 50ddde9

Browse files
author
Valentin Vetter
committed
feat(stub): move preview to the right
1 parent c5c8f22 commit 50ddde9

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

runner/src/main/resources/view/stub.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ body {
44
}
55

66
body {
7+
display: flex;
8+
padding: 10px;
79
color: white;
810
font-family: 'Open Sans', Lato, sans-serif;
911
font-weight: 400;
@@ -37,7 +39,8 @@ button {
3739

3840
#stubInput {
3941
width: 600px;
40-
height: 200px;
42+
height: 230px;
43+
padding: 3px;
4144
}
4245

4346
#save {
@@ -62,6 +65,14 @@ button {
6265
cursor: default;
6366
}
6467

68+
.edit {
69+
flex: none;
70+
}
71+
72+
.preview {
73+
flex: 1;
74+
}
75+
6576
.edit,
6677
.preview {
6778
margin: 10px;

runner/src/main/resources/view/stub.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
<body onload="load()">
1313
<div class="edit">
14-
<div class="edit-title">Edit</div>
15-
<textarea id="stubInput" onkeyup="handleChangeStubInput()"></textarea>
14+
<div class="edit-title">Edit stub</div>
15+
<textarea id="stubInput" onkeyup="handleChangeStubInput()" spellcheck="false"></textarea>
1616
<button id="save" onclick="save()" disabled>Saved</button>
1717
</div>
18+
1819
<div class="preview">
1920
<div class="preview-title">Preview</div>
2021
<select id="language" onchange="refreshStub()">

0 commit comments

Comments
 (0)