Skip to content

Commit 15fa169

Browse files
authored
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 01928cf commit 15fa169

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
@@ -122,7 +122,7 @@
122122
}
123123
.cm-lineNumbers {
124124
.cm-gutterElement {
125-
@apply pl-2 pr-8;
125+
@apply pr-8 pl-12;
126126
}
127127
}
128128

@@ -154,7 +154,6 @@
154154
}
155155

156156
.cm-lineNumbers {
157-
/* width: 2em; */
158157
text-align: right;
159158
}
160159

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#bootcamp-frontend-training-page {
22
.page-body-rhs {
3+
@apply bg-white;
34
@apply flex-grow;
5+
46
@apply flex flex-col;
57
@apply overflow-hidden;
68
& > 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)