Skip to content

add inline editable title to the note page#809

Merged
moehdotdev merged 1 commit into
mainfrom
home-uiux-changes
Jun 13, 2026
Merged

add inline editable title to the note page#809
moehdotdev merged 1 commit into
mainfrom
home-uiux-changes

Conversation

@moehdotdev

Copy link
Copy Markdown
Member

the note title used to only be editable from the sidebar. it's now an inline input at the top of the editor, styled to match the prose heading look.
image
image
image

what changed:

  • added an Input above the editor in NotePageClient bound to editedTitle state
  • debouncedUpdateNoteTitle (100ms debounce) validates with zod, slugifies the new title, updates the url via router.replace, and calls updateNote if the title actually changed
  • if validation fails (empty or over 55 chars) the title resets to empty and the update is skipped
  • input styled as a large heading (text-2xl / md:text-5xl) with all borders, shadows, and rings stripped
  • removed stale comments throughout the file
  • minor whitespace fix on the outer container classnames

input.tsx: removed shadow-sm, set shadow-none as default prevents the base shadow showing through on the title input

toast.tsx: default and destructive variants get a gradient background (from-card to-muted-foreground/50 / to-destructive/50), and destructive close button styles simplified to remove unused group-destructive ring overrides

@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
notevo Building Building Preview, Comment Jun 13, 2026 2:37pm

@moehdotdev moehdotdev merged commit 76be734 into main Jun 13, 2026
1 of 2 checks passed
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.

1 participant