mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
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:
commit
3a744e06b8
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue