From 99c1fd0d3626fdcd1e8c0b187895f7536d1a1816 Mon Sep 17 00:00:00 2001 From: Gamosoft Date: Mon, 23 Feb 2026 17:51:11 +0100 Subject: [PATCH] fixed flashing/changed search debounce --- frontend/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index 6026c5d..acc00c4 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -3,7 +3,7 @@ // Configuration constants const CONFIG = { AUTOSAVE_DELAY: 1000, // ms - Delay before triggering autosave - SEARCH_DEBOUNCE_DELAY: 1000, // ms - Delay before running note search while typing + SEARCH_DEBOUNCE_DELAY: 500, // ms - Delay before running note search while typing SAVE_INDICATOR_DURATION: 2000, // ms - How long to show "saved" indicator SCROLL_SYNC_DELAY: 50, // ms - Delay to prevent scroll sync interference SCROLL_SYNC_MAX_RETRIES: 10, // Maximum attempts to find editor/preview elements @@ -212,7 +212,8 @@ function noteApp() { readableLineLength: true, // Hide underscore-prefixed folders (_attachments, _templates) from sidebar - hideUnderscoreFolders: false, + // Read synchronously to prevent flash on initial render + hideUnderscoreFolders: localStorage.getItem('hideUnderscoreFolders') === 'true', // Icon rail / panel state activePanel: 'files', // 'files', 'search', 'tags', 'settings'