generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactored the positioning system of the toolbar in the
"following". - Refactored isExistoolbar() to get rid of deprecated code (i.e., `activeLeaf`), and to simplify the code. - Refactor the way the toolbar's position is calculated for the "following" mode, to make sure the toolbar: - Is always visible, even when we the user selects the last or first line in the editor. - To try not to overflow over the File Explorer or the Outline. - Refactored getModestate() into isSource(). Since getModestate() doesn't really get the mode state but rather returns whether the MarkdownView mode state is "source" or not, I renamed it to isSource(), and simplified the function in the process.
- Loading branch information
Showing
2 changed files
with
52 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters