Skip to content

public note: width toggle, creation date,utils cleanup#764

Merged
moehdotdev merged 1 commit into
mainfrom
home-uiux-changes
May 23, 2026
Merged

public note: width toggle, creation date,utils cleanup#764
moehdotdev merged 1 commit into
mainfrom
home-uiux-changes

Conversation

@moehdotdev

Copy link
Copy Markdown
Member

what changed

before :
image

after :
image

width toggle on the public note page

  • added a width toggle button to the public note header using the existing useNoteWidth hook, so readers get the same narrow/wide layout control that exists in the private editor
  • button shows ChevronsLeftRightEllipsis when in narrow mode and ChevronsRightLeft when wide, matching the icon convention used elsewhere
  • MaxWContainer on the public page now applies the same conditional width logic: Desktop:w-[900px] w-full px-4 for narrow, px-6 for wide

creation date in the header

  • the note title in the public page header now shows a second line with "Created {date}" using formatNoteTimestamp gives readers basic context without cluttering the layout

formatNoteTimestamp moved to lib/utils

  • the function was previously defined inline inside NoteSettings.tsx. it's now exported from lib/utils.ts and imported in both NoteSettings and the public note page single source of truth, no duplication

minor button alignment fix

pdf loading skeleton

  • loading.tsx for the pdf route now wraps the skeleton in MaxWContainer with w-[900px] instead of a plain div, so the loading state matches the actual pdf viewer dimensions

tooltip delay

  • useHoverTooltip delay on NoteDownloadDropdown reduced from default to 100ms to match the rest of the header buttons

@vercel

vercel Bot commented May 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
notevo Ready Ready Preview, Comment May 23, 2026 12:23am

@moehdotdev moehdotdev merged commit cc94992 into main May 23, 2026
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