Skip to content

Commit 68e07fd

Browse files
dem4roniHiD
authored andcommitted
Editor style tweaks (#7805)
* Adjust linenumber paddings * Adjust linenumber padding * Adjust control buttons width, and page-rhs bg color * Add gap between button groups
1 parent 8af4da9 commit 68e07fd

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

app/css/bootcamp/components/codemirror.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
}
125125
.cm-lineNumbers {
126126
.cm-gutterElement {
127-
@apply pl-2 pr-8;
127+
@apply pr-8 pl-12;
128128
}
129129
}
130130

@@ -156,7 +156,6 @@
156156
}
157157

158158
.cm-lineNumbers {
159-
/* width: 2em; */
160159
text-align: right;
161160
}
162161

app/css/bootcamp/components/frontend-training-page.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#bootcamp-frontend-training-page,
22
#bootcamp-frontend-exercise-page {
33
.page-body-rhs {
4+
@apply bg-white;
45
@apply flex-grow;
6+
57
@apply flex flex-col;
68
@apply overflow-hidden;
79
& > button {

app/javascript/components/bootcamp/CSSExercisePage/LHS/ControlButtons.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,15 @@ export function ControlButtons({
8888
submitCode,
8989
])
9090

91+
const {
92+
panelSizes: { LHSWidth },
93+
} = useCSSExercisePageStore()
94+
9195
return (
92-
<div className="flex py-8 justify-between">
96+
<div
97+
style={{ width: LHSWidth }}
98+
className="flex py-8 gap-8 justify-between"
99+
>
93100
<button onClick={handleSubmitCode} className="btn-primary btn-s">
94101
Check Result
95102
</button>

0 commit comments

Comments
 (0)