Closed s4my closed 7 months ago
Thank you for your work. There seems to be a positioning issue with my computer; the toolbar keeps overflowing off the screen. We'll hold off on merging branches until it's resolved. More improvements to come.
the toolbar keeps overflowing off the screen.
Can you elaborate more please, what do you mean off screen? like outside of Obsidian's window completely? and can you please make sure to disable any plugins or themes that might interfere with your testing (you could use Obsidian sandbox vault). I updated the code, please try again and keep me updated.
it looks a bit more normal, but the following list of tests will help you to determine if you have the same problem:
Hi @cumany, thank you for the detailed feedback, I fixed all the issues you mentioned above in this new commit. If you need me to make any further changes feel free to tell.
Good job. It was perfect!
Refactor the way the toolbar's position is calculated for the "following" mode to make sure the toolbar:
Refactord isExistoolbar() to get rid of deprecated code (i.e.,
activeLeaf
), and to simplify the code.Refactored
getModestate()
intoisSource()
: sincegetModestate()
doesn't really get the mode state, but rather returns whether the MarkdownView mode state is "source" or not, I renamed it toisSource()
to reflect just that, and simplified the function implementation in the process.