Skip to content

fix(app): fix Notes editor formatting and title issues - #93

Merged
comppaz merged 1 commit into
mainfrom
fix/notes-editor-formatting-92
Jan 9, 2026
Merged

fix(app): fix Notes editor formatting and title issues#93
comppaz merged 1 commit into
mainfrom
fix/notes-editor-formatting-92

Conversation

@comppaz

@comppaz comppaz commented Jan 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix bullet list, numbered list, and blockquote buttons not working
  • Fix H2/H3 heading differentiation (H3 now visually distinct)
  • Fix title horizontal scrolling (auto-resizing textarea)
  • Fix Enter key in title to move focus to editor

Root Cause

The .ProseMirror CSS rules were inside @layer components, causing Tailwind's JIT compiler to purge them since .ProseMirror is a class added dynamically by TipTap (not detected in source files).

Changes

  • index.css: Moved all .ProseMirror rules outside @layer components to prevent purging
  • index.css: Updated H3 styling (1.125rem, font-weight 500) to differentiate from H2
  • NoteEditor.tsx: Changed title <input> to <textarea> with auto-resize
  • NoteEditor.tsx: Added Enter key handler to focus editor from title

Test plan

  • Open Notes editor
  • Click bullet list button → should show bullet points
  • Click numbered list button → should show numbers
  • Click blockquote button → should show indented quote with border
  • Create H2 and H3 → H3 should be visibly smaller/lighter
  • Type long title → should wrap to multiple lines
  • Press Enter in title → focus should move to editor

Closes #92

- Move ProseMirror CSS outside @layer components to prevent Tailwind purging
- Fix H3 styling to differentiate from H2 (smaller size, lighter weight)
- Change title input to auto-resizing textarea for text wrapping
- Add Enter key handler to move focus from title to editor

Closes #92
@comppaz
comppaz merged commit cbc0983 into main Jan 9, 2026
1 check passed
@comppaz
comppaz deleted the fix/notes-editor-formatting-92 branch January 9, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug:

1 participant