From 6bd463ecf0f8bc1639127489d0cf6f40f66f9908 Mon Sep 17 00:00:00 2001 From: skyash-dev Date: Sun, 7 Jun 2026 23:17:37 +0530 Subject: [PATCH 1/2] position fold gutter absolute + fix --- client/styles/components/_editor.scss | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/client/styles/components/_editor.scss b/client/styles/components/_editor.scss index e01e2095f8..d67b41cf58 100644 --- a/client/styles/components/_editor.scss +++ b/client/styles/components/_editor.scss @@ -75,6 +75,8 @@ color: getThemifyVariable('inactive-text-color'); } pointer-events: none; + position:absolute; + right: 20%; } .cm-activeLineGutter { @@ -162,14 +164,8 @@ // CM5: .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded .cm-foldGutter { - padding-right: #{math.div(3, $base-font-size)}rem; -} - -.cm-foldGutter .cm-gutterElement { - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; + position: absolute; + right: 1px; } // CM5: .CodeMirror-foldgutter-open:after / .CodeMirror-foldgutter-folded:after @@ -184,7 +180,7 @@ )}rem; background-repeat: no-repeat; background-position: center center; - opacity: 0.4; + opacity: 0.2; } .cm-fold-open { From 5808e913f4978634badb6a71f087296c88025890 Mon Sep 17 00:00:00 2001 From: yash <52105266+skyash-dev@users.noreply.github.com> Date: Mon, 8 Jun 2026 10:22:00 +0530 Subject: [PATCH 2/2] add cursor pointer style to cm-foldGutter --- client/styles/components/_editor.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/client/styles/components/_editor.scss b/client/styles/components/_editor.scss index d67b41cf58..958e9d1a39 100644 --- a/client/styles/components/_editor.scss +++ b/client/styles/components/_editor.scss @@ -164,6 +164,7 @@ // CM5: .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded .cm-foldGutter { + cursor: pointer; position: absolute; right: 1px; }