mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
fix(editor): Fix focused state in Code node editor (#5869)
🎨 Fix focused state in Code node
This commit is contained in:
parent
62751b5a0b
commit
48446f5d67
|
@ -48,6 +48,10 @@ export const CODE_NODE_EDITOR_THEME = [
|
|||
'&.cm-focused .cm-selectionBackgroundm .cm-selectionBackground, .cm-content ::selection': {
|
||||
backgroundColor: 'var(--color-code-selection)',
|
||||
},
|
||||
'&.cm-editor.cm-focused': {
|
||||
outline: 'none',
|
||||
borderColor: 'var(--color-secondary)',
|
||||
},
|
||||
'.cm-activeLine': {
|
||||
backgroundColor: 'var(--color-code-lineHighlight)',
|
||||
},
|
||||
|
@ -57,6 +61,7 @@ export const CODE_NODE_EDITOR_THEME = [
|
|||
'.cm-gutters': {
|
||||
backgroundColor: 'var(--color-code-gutterBackground)',
|
||||
color: 'var(--color-code-gutterForeground)',
|
||||
borderRadius: 'var(--border-radius-base)',
|
||||
},
|
||||
'.cm-tooltip': {
|
||||
maxWidth: BASE_STYLING.tooltip.maxWidth,
|
||||
|
|
Loading…
Reference in a new issue