pjeby / pane-relief

Obsidian plugin for per-pane history, pane movement/navigation hotkeys, and more
237 stars 7 forks source link

Navigation Buttons Broken with Obsidian v16.0 #29

Closed aidan-gibson closed 2 years ago

aidan-gibson commented 2 years ago

With Pane Relief Enabled:

Screen Shot 2022-08-29 at 23 51 42

With Pane Relief Disabled:

Screen Shot 2022-08-29 at 23 51 56
pjeby commented 2 years ago

Hm. It looks like MacOS is using display: block on the new theme instead of display: flex. Try this CSS snippet and see if it works (and doesn't break anything else):

body.obsidian-themepocalypse .titlebar-button-container {
    display: flex;
}
aidan-gibson commented 2 years ago

That pretty much fixes it, thanks! It's much more spread out as you can see, but I don't mind. image

aidan-gibson commented 2 years ago

https://forum.obsidian.md/t/0-16-0-theme-migration-guide/42537

This also might be helpful! A lot of CSS changes happened with v16. Thanks so much for a killer plugin!

pjeby commented 2 years ago

The spreading is actually intentional so that the numbers will fit and won't cause other things in the title bar to move (like Quick Explorer). If you go to a note with enough history to have two digit numbers, there will be a lot less space. :)

Anyway, I'm going to go ahead and add the CSS to the plugin to fix this, thanks for the report and testing.

pjeby commented 2 years ago

Obsidian 0.16.2 should fix this problem, and if it doesn't, Pane Relief 0.3.1 should. Both are available for update now. :wink: