Skip to content

Commit

Permalink
Fix some style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
congmul committed Jul 11, 2024
1 parent 9027929 commit db9e6bd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Editor/components/Terminal/EditorTerminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const EditorTerminal:React.FC<EditorTerminalType> = ({editorRef, lintErrors}) =>
(selectedMenu === 'error' ? errors : warnings).map((err: any, index:number) => {
const { code, message, range, severity } = err;
let renderedLine = range.start.line + 1;
renderedLine = renderedLine && range.start.character ? `[Ln ${renderedLine}, Col ${range.start.character}}]` : `[Ln ${renderedLine}, Col 0]`
renderedLine = renderedLine && range.start.character ? `[Ln ${renderedLine}, Col ${range.start.character}]` : `[Ln ${renderedLine}, Col 0]`
return(
<tr key={`${code}-${index}`}
onClick={() => {
Expand All @@ -82,8 +82,8 @@ const EditorTerminal:React.FC<EditorTerminalType> = ({editorRef, lintErrors}) =>
}
</span>
<span className="me-2">{message || '-'}</span>
<span className="me-2">{[code]}</span>
<span className="me-2">{renderedLine || '-'}</span>
<span className="me-2 color-text-light">[{code}]</span>
<span className="me-2 color-text-light">{renderedLine || '-'}</span>
</td>
</tr>
)
Expand Down
3 changes: 3 additions & 0 deletions src/sass/_className.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.color-text-light {
color: var(--color-text-light);
}
2 changes: 2 additions & 0 deletions src/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ $colors: (
color-text-headding: #252525,
color-text-body: #474747,
color-text-secondary: #FFFFFF,
color-text-light: #696969,
neutral-01: #FFFFFF,
neutral-08: #AFAFAF
);
Expand All @@ -26,6 +27,7 @@ $colors-dark: (
color-text-headding: #FFFFFF,
color-text-body: #D1D1D1,
color-text-secondary: #FFFFFF,
color-text-light: #979797,
neutral-01: #FFFFFF,
neutral-08: #AFAFAF
);
1 change: 1 addition & 0 deletions src/sass/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@import "./mixins";
@include export-to-css-vars($colors);
@include export-to-css-vars-dark($colors-dark);
@import "./className";
@import "../node_modules/bootstrap/scss/bootstrap";
@import "swagger-ui-react/swagger-ui.css";

Expand Down

0 comments on commit db9e6bd

Please sign in to comment.