[BUG] Edit mode only shows 2-3 lines at a time with Outliner enabled
Opened this issue · 2 comments
Describe the bug
Obsidian edit mode will only show 2-3 lines at a time after 6-7 lines of text have been added to a markdown file. The behaviour is consistent with both live preview and source modes. Disabling the Outliner plug-in returns the editor to normal behaviour.
To Reproduce
Steps to reproduce the behavior:
- Create a new file
- Make sure you are in edit mode
- Make sure Outliner plugin is enabled.
- Type 7 lines of text. Press enter at the end of each line.
- Press enter to insert an empty line.
- Notice that you can only see 2-3 lines of text.
- Use arrow keys to scroll vertically to see the small window of 2-3 lines of text change as you move through the file.
- Go to settings and disable Outliner plugin
- Observe the editor show all of the text in the file you just created.
Expected behavior
I can add as many lines of text to the file as I want and see all of it in edit mode.
Obsidian-Edit-Mode-Problem-2023-05-21_13-58-52.mp4
Screenshots
Please see the short video demonstrating the issue.
Environment (please complete the following information):
- OS: macOS 13.3.1.(a)
- Obsidian Version: 1.2.8
- Plugin Version: 4.7.1
Additional context
The behaviour is only present in edit mode. Reading mode displays the text as expected.
This just happened on my Windows desktop. Obsidian version 1.5.11, plugin version 4.8.1. It was working fine a few days ago, so I am not sure what changed.
The only way I can edit notes now is by disabling the Outliner plugin.
I found the issue. Fortunately I had a Mac installation of Obsidian which was still working fine, so I compared the two and realised the CSS styles were different.
It turns out that on my Windows installation, the file .obsidian/plugins/obsidian-outliner/styles.css was empty. It may have been corrupted somehow. I am running Obsidian LiveSync, so perhaps the plugin tried to update the file while it was syncing... who knows?
I uninstalled and reinstalled the plugin and now it is working fine.