From d0cd3a48ce7628c70b116a5d4b810bcff34af24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Fri, 26 Jan 2024 21:50:31 +0800 Subject: [PATCH] Don't show Vim cursor outline in unfocused cells --- assets/js/hooks/cell_editor/live_editor/codemirror/theme.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/js/hooks/cell_editor/live_editor/codemirror/theme.js b/assets/js/hooks/cell_editor/live_editor/codemirror/theme.js index f4c906a46..2a5592e67 100644 --- a/assets/js/hooks/cell_editor/live_editor/codemirror/theme.js +++ b/assets/js/hooks/cell_editor/live_editor/codemirror/theme.js @@ -85,6 +85,12 @@ function buildEditorTheme(colors, { dark }) { backgroundColor: colors.selectionMatchBackground, }, + // Vim cursor + + "&:not(.cm-focused) .cm-fat-cursor": { + outline: "none !important", + }, + // Base components ".cm-gutters": {