From 23d0140f76db001901136afd74cc78b58ea30758 Mon Sep 17 00:00:00 2001 From: Timofey Arkusha Date: Mon, 7 Jul 2025 16:00:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=B0=D0=BB=D0=B5=D0=BD=D1=8C=D0=BA?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=84=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Editor.tsx | 1 + src/index.css | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Editor.tsx b/src/Editor.tsx index 41162a3..f09671e 100644 --- a/src/Editor.tsx +++ b/src/Editor.tsx @@ -102,4 +102,5 @@ const basicSetup: Extension = [ keymap.of([...closeBracketsKeymap, ...defaultKeymap, ...searchKeymap, ...historyKeymap]), mathPlugin(), placeholder('0.1 + 0.2 = 0.3'), + EditorView.lineWrapping, ] diff --git a/src/index.css b/src/index.css index cd221f8..9951f14 100644 --- a/src/index.css +++ b/src/index.css @@ -10,6 +10,7 @@ body { max-width: 800px; margin: auto; height: 100vh; + padding: 12px; } #root, @@ -22,10 +23,6 @@ body { outline: none; } -.cm-scroller { - margin-right: -14px; -} - .math-result { color: rgb(80, 80, 80); margin-left: 8px; @@ -66,7 +63,7 @@ body { font-family: monospace; font-size: 14px; cursor: pointer; - margin: 8px 0; + margin-bottom: 8px; transition: all 0.2s ease; font-weight: 600; }