mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 03:42:16 +00:00
fix(editor): Fix focused state in Code node editor (#5869)
🎨 Fix focused state in Code node
This commit is contained in:
@@ -48,6 +48,10 @@ export const CODE_NODE_EDITOR_THEME = [
|
|||||||
'&.cm-focused .cm-selectionBackgroundm .cm-selectionBackground, .cm-content ::selection': {
|
'&.cm-focused .cm-selectionBackgroundm .cm-selectionBackground, .cm-content ::selection': {
|
||||||
backgroundColor: 'var(--color-code-selection)',
|
backgroundColor: 'var(--color-code-selection)',
|
||||||
},
|
},
|
||||||
|
'&.cm-editor.cm-focused': {
|
||||||
|
outline: 'none',
|
||||||
|
borderColor: 'var(--color-secondary)',
|
||||||
|
},
|
||||||
'.cm-activeLine': {
|
'.cm-activeLine': {
|
||||||
backgroundColor: 'var(--color-code-lineHighlight)',
|
backgroundColor: 'var(--color-code-lineHighlight)',
|
||||||
},
|
},
|
||||||
@@ -57,6 +61,7 @@ export const CODE_NODE_EDITOR_THEME = [
|
|||||||
'.cm-gutters': {
|
'.cm-gutters': {
|
||||||
backgroundColor: 'var(--color-code-gutterBackground)',
|
backgroundColor: 'var(--color-code-gutterBackground)',
|
||||||
color: 'var(--color-code-gutterForeground)',
|
color: 'var(--color-code-gutterForeground)',
|
||||||
|
borderRadius: 'var(--border-radius-base)',
|
||||||
},
|
},
|
||||||
'.cm-tooltip': {
|
'.cm-tooltip': {
|
||||||
maxWidth: BASE_STYLING.tooltip.maxWidth,
|
maxWidth: BASE_STYLING.tooltip.maxWidth,
|
||||||
|
|||||||
Reference in New Issue
Block a user