From 2983457fc0c770542a844374f3989aa7a25b8d00 Mon Sep 17 00:00:00 2001 From: Golwhit Date: Mon, 29 Dec 2025 19:00:42 -0600 Subject: [PATCH] Add ellipsis to auto-generated titles with >4 words and truncate titles >120 chars --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index 376d7f1..2088278 100644 --- a/index.html +++ b/index.html @@ -613,6 +613,15 @@ const words = noteText.split(/\s+/).filter(w => w.length > 0); const firstFour = words.slice(0, 4).join(' '); noteTitle = 'Untitled: ' + (firstFour || 'note'); + // Add ellipsis if note has more than 4 words + if (words.length > 4) { + noteTitle += '...'; + } + } + + // Truncate title if it exceeds 120 characters + if (noteTitle.length > 120) { + noteTitle = noteTitle.substring(0, 120) + '...'; } try {