From e156a400d079faf8fbfb27842902c3fe4607e7d5 Mon Sep 17 00:00:00 2001 From: neyfua Date: Fri, 31 Jul 2026 19:00:57 +0700 Subject: [PATCH 1/3] fix(notes): limit characters in titles to prevent it from going through the pin and delete buttons --- notes/panel.luau | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/notes/panel.luau b/notes/panel.luau index 71bea8f..412bb43 100644 --- a/notes/panel.luau +++ b/notes/panel.luau @@ -192,15 +192,25 @@ local function togglePin(file) render() end +local function truncateText(text, maxLength) + if #text <= maxLength then + return text + end + return text:sub(1, maxLength - 3) .. "..." +end + local function listRow(file) local pinned = pins[file] == true -- Both row states keep the same leading text button so the row height (set -- by the text-button tier) never changes when the confirm controls swap in. + local displayName = displayName(file) + local truncated = truncateText(displayName, 38) local title = { - text = displayName(file), + text = truncated, variant = "ghost", contentAlign = "start", flexGrow = 1, + tooltip = displayName, onClick = function() openNote(file) end, From 69c8368c378debf66216af497d3ca755ce5a419a Mon Sep 17 00:00:00 2001 From: neyfua Date: Fri, 31 Jul 2026 19:01:08 +0700 Subject: [PATCH 2/3] chore(notes): bump version up --- notes/plugin.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/plugin.toml b/notes/plugin.toml index 22d9ad1..1176938 100644 --- a/notes/plugin.toml +++ b/notes/plugin.toml @@ -1,6 +1,6 @@ id = "noctalia/notes" name = "Notes" -version = "1.0.3" +version = "1.0.4" plugin_api = 9 author = "noctalia" license = "MIT" From 51533ca948314b130a48aad6c7aa3dc88557d1e0 Mon Sep 17 00:00:00 2001 From: neyfua Date: Mon, 10 Aug 2026 08:20:20 +0700 Subject: [PATCH 3/3] fix(notes): decrease the characters limit --- notes/panel.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/panel.luau b/notes/panel.luau index 412bb43..4b0df17 100644 --- a/notes/panel.luau +++ b/notes/panel.luau @@ -204,7 +204,7 @@ local function listRow(file) -- Both row states keep the same leading text button so the row height (set -- by the text-button tier) never changes when the confirm controls swap in. local displayName = displayName(file) - local truncated = truncateText(displayName, 38) + local truncated = truncateText(displayName, 34) local title = { text = truncated, variant = "ghost",