Skip to content

Commit 4b7b73d

Browse files
committed
ux: improve editor visibility and interaction feedback
- Add text cursor on editor container and EditorContent - Add focus state rules for tiptap and ProseMirror - Make it more obvious that the editor is an interactive text field
1 parent 4c34c07 commit 4b7b73d

2 files changed

Lines changed: 29 additions & 2 deletions

File tree

apps/app/src/app/canvas/page.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,12 @@ const DocumentEditor = () => {
265265
Write whatever you want here in Markdown format...
266266
</div>
267267
)}
268-
<div className="flex-1 overflow-hidden flex flex-col">
269-
<EditorContent editor={editor} className="h-full p-10 overflow-y-auto" />
268+
<div className="flex-1 overflow-hidden flex flex-col" style={{ cursor: "text" }}>
269+
<EditorContent
270+
editor={editor}
271+
className="h-full p-10 overflow-y-auto"
272+
style={{ cursor: "text" }}
273+
/>
270274
</div>
271275
</div>
272276
);

apps/app/src/app/canvas/style.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,26 @@
9999
padding: 2px;
100100
font-style: normal;
101101
}
102+
103+
/* Editor focus and interaction states */
104+
.tiptap {
105+
outline: none;
106+
cursor: text;
107+
}
108+
109+
.tiptap:focus,
110+
.tiptap:focus-visible {
111+
outline: none;
112+
}
113+
114+
/* Tiptap container styling */
115+
.ProseMirror {
116+
outline: none;
117+
cursor: text;
118+
min-height: 100%;
119+
}
120+
121+
.ProseMirror:focus,
122+
.ProseMirror:focus-visible {
123+
outline: none;
124+
}

0 commit comments

Comments
 (0)