Merge pull request #325 from Semptic/fix/274-hide-folder-note-scrolling

fix: increase infinity scroll buffer to show hidden folder notes
This commit is contained in:
Paul 2026-06-01 16:05:40 +02:00 committed by GitHub
commit 3a744e06b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,7 @@ import {
refreshAllFolderStyles, setActiveFolder, removeActiveFolder,
} from './functions/styleFunctions';
import { getExcludedFolder } from './ExcludeFolders/functions/folderFunctions';
import { getFileExplorer } from './functions/utils';
import { FOLDER_OVERVIEW_VIEW, FolderOverviewView } from './obsidian-folder-overview/src/view';
import { registerOverviewCommands } from './obsidian-folder-overview/src/Commands';
import { updateOverviewView, updateViewDropdown } from './obsidian-folder-overview/src/main';
@ -219,6 +220,13 @@ export default class FolderNotesPlugin extends Plugin {
}
registerFileExplorerObserver(this);
const fileExplorer = getFileExplorer(this);
if (fileExplorer) {
// @ts-expect-error use internal API
fileExplorer.view.tree.infinityScroll.rootMargin = 1.5;
}
this.registerView(FOLDER_OVERVIEW_VIEW, (leaf: WorkspaceLeaf) => {
return new FolderOverviewView(leaf, this);
});