Skip to content

Commit

Permalink
chore: Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Mar 28, 2024
1 parent 2055da5 commit a13eacf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ export default class Editor extends React.Component<Props, State> {
? // Trigger redo with ⌘+Shift+Z on Mac
e.metaKey && e.keyCode === KEYCODE_Z && e.shiftKey
: isWindows
? // Trigger redo with Ctrl+Y on Windows
e.ctrlKey && e.keyCode === KEYCODE_Y
: // Trigger redo with Ctrl+Shift+Z on other platforms
e.ctrlKey && e.keyCode === KEYCODE_Z && e.shiftKey) &&
? // Trigger redo with Ctrl+Y on Windows
e.ctrlKey && e.keyCode === KEYCODE_Y
: // Trigger redo with Ctrl+Shift+Z on other platforms
e.ctrlKey && e.keyCode === KEYCODE_Z && e.shiftKey) &&
!e.altKey
) {
e.preventDefault();
Expand Down
6 changes: 5 additions & 1 deletion src/theme/theme-dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ https://prismjs.com/download.html#themes=prism-twilight&languages=markup+css+cli
border-bottom: 1px dashed #545454;
margin-top: 0.75em;
background: hsla(0, 0%, 33%, 0.25);
background: linear-gradient(to right, hsla(0, 0%, 33%, 0.1) 70%, hsla(0, 0%, 33%, 0));
background: linear-gradient(
to right,
hsla(0, 0%, 33%, 0.1) 70%,
hsla(0, 0%, 33%, 0)
);
}

.line-highlight.line-highlight:before,
Expand Down

0 comments on commit a13eacf

Please sign in to comment.