fix: update masonry grid sizing logic and notebook list padding

This commit is contained in:
Sepehr Ramezani
2026-02-14 14:20:32 +01:00
parent a0ffc9043b
commit 8f9031f076
580 changed files with 9789 additions and 42619 deletions

View File

@@ -202,15 +202,9 @@ export default function HomePage() {
}
// Load pinned notes separately (shown in favorites section)
const pinned = await getPinnedNotes()
const pinned = await getPinnedNotes(notebookFilter || undefined)
// Filter pinned notes by current filters as well
if (notebookFilter) {
setPinnedNotes(pinned.filter((note: any) => note.notebookId === notebookFilter))
} else {
// If no notebook selected, only show pinned notes without notebook
setPinnedNotes(pinned.filter((note: any) => !note.notebookId))
}
setPinnedNotes(pinned)
// Load recent notes only if enabled in settings
if (showRecentNotes) {