Skip to content

Commit 68944e6

Browse files
committed
restyled the code editor
1 parent e9f3836 commit 68944e6

File tree

4 files changed

+34
-3
lines changed

4 files changed

+34
-3
lines changed

ui/app/styles/components.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
@import './components/image-file.scss';
2828
@import './components/inline-definitions';
2929
@import './components/job-diff';
30+
@import './components/job-editor';
3031
@import './components/json-viewer';
3132
@import './components/legend';
3233
@import './components/lifecycle-chart';
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.job-editor {
2+
.job-definition-editor-header {
3+
align-items: center;
4+
display: flex;
5+
color: var(--token-color-palette-neutral-100);
6+
7+
.job-definition-select {
8+
border: 1px solid var(--token-color-palette-neutral-500);
9+
border-radius: 5px;
10+
display: grid;
11+
gap: 0.25rem;
12+
grid-template-columns: 1fr 1fr;
13+
padding: 0.25rem;
14+
margin: 0rem 1rem;
15+
16+
&.disabled {
17+
opacity: 0.5;
18+
pointer-events: none;
19+
}
20+
21+
.hds-button.is-active {
22+
background: var(--token-color-palette-neutral-100);
23+
color: var(--token-color-foreground-strong);
24+
}
25+
}
26+
27+
.hds-form-label {
28+
color: var(--token-color-palette-neutral-100);
29+
}
30+
}
31+
}

ui/app/templates/components/job-editor.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPDX-License-Identifier: BUSL-1.1
44
~}}
55

6-
<div>
6+
<div class="job-editor">
77
<JobEditor::Alert
88
@data={{merge (hash error=this.error stage=this.stage) this.data}}
99
@fns={{this.fns}}

ui/app/templates/components/job-editor/edit.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
<CE.Title>Job Definition</CE.Title>
1616

1717
{{#if @data.cancelable}}
18-
<CE.Generic>
19-
{{!-- TODO: Fix header styles --}}
18+
<CE.Generic class="job-definition-editor-header">
2019
<span class="header-toggle">
2120
<Hds::Form::Toggle::Field
2221
{{keyboard-shortcut

0 commit comments

Comments
 (0)