From c957a1b63302d4f545670088a360ff57e33de9cc Mon Sep 17 00:00:00 2001 From: Alice Hernandez Date: Mon, 8 Jun 2026 19:38:37 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20indentations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/Editor/MarkdownEditor.tsx | 1 + src/renderer/styles/app.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/Editor/MarkdownEditor.tsx b/src/renderer/components/Editor/MarkdownEditor.tsx index 2d65b9b..8e7ba98 100644 --- a/src/renderer/components/Editor/MarkdownEditor.tsx +++ b/src/renderer/components/Editor/MarkdownEditor.tsx @@ -38,6 +38,7 @@ function annDecorations(anns: TextAnnotation[], doc: { toString(): string }): De return builder.finish() } + const annPlugin = ViewPlugin.fromClass(class { decorations: DecorationSet constructor(view: EditorView) { this.decorations = annDecorations(view.state.field(annField), view.state.doc) } diff --git a/src/renderer/styles/app.css b/src/renderer/styles/app.css index e83465b..a074953 100644 --- a/src/renderer/styles/app.css +++ b/src/renderer/styles/app.css @@ -304,7 +304,7 @@ textarea { resize: vertical; } .cm-editor.cm-focused { outline: none; } .cm-scroller { font-family: 'Georgia', 'Times New Roman', serif; line-height: 1.8; font-size: 16px; transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1); overscroll-behavior: none; } .cm-content { max-width: 680px; margin: 0 auto; padding: 48px 24px 24px; transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1); } -.cm-line { padding: 0 0 0.75em; margin: 0; } +.cm-line { padding: 0 0 0.75em; margin: 0; text-indent: 2em; } .cm-line:last-child { padding-bottom: 0; } .cm-cursor { border-left-color: var(--accent) !important; } .cm-selectionBackground { background: rgba(200, 169, 110, 0.25) !important; }