fix: update masonry grid sizing logic and notebook list padding
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user