From 2231613584724c2e154901d9183ed549fe1a6434 Mon Sep 17 00:00:00 2001 From: noteser-agent Date: Sat, 6 Jun 2026 22:48:37 +0300 Subject: [PATCH] fix(preview): drop cursor block + caret marker per Jon's call --- src/styles/globals.css | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/src/styles/globals.css b/src/styles/globals.css index 74dba1a0..34dc7bc3 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -252,33 +252,12 @@ } } -/* Preview mode: cursor indicator + completed-task strikethrough. - User feedback 2026-06-04: "I don't want a blue line ... in edit - nor in preview". Repainted the cursor block + marker in the muted - secondary-text colour so the cursor stays visible in preview mode - but the persistent vertical blue bar that was reading as a "line" - alongside the active line is gone. */ -.preview-cursor-block { - border-left: 3px solid theme('colors.obsidianSecondaryText'); - padding-left: 0.75rem; - margin-left: -0.95rem; -} - -.preview-cursor-marker { - display: inline-block; - width: 2px; - height: 1.1em; - background: theme('colors.obsidianSecondaryText'); - vertical-align: text-bottom; - margin: 0 -1px; - border-radius: 1px; - animation: cursor-blink 1.05s steps(2, end) infinite; -} - -@keyframes cursor-blink { - 0%, 50% { opacity: 1; } - 51%, 100% { opacity: 0; } -} +/* Preview mode used to paint a vertical bar + blinking caret on the + active line. Jon (2026-06-06): the two lines around the active heading + are unwanted in preview. Classes still applied by EditorContent so the + click-to-edit positioning logic keeps working, but neither paints. */ +.preview-cursor-block {} +.preview-cursor-marker { display: none; } /* Completed task (`- [x]`) — strike through the item's own content (links, bold, text inside a wrapping

) at any nesting depth, WITHOUT bleeding the