Here’s another workaround snippet. This one is scrolling based, but not in the way that apps typically do it (the differences are detailed in the comment at the top of the snippet).
/* Make the top bar scroll as part of the page.
A workaround for https://forum.obsidian.md/t/option-to-show-hide-top-bar-s-when-note-is-scrolled-or-just-when-keyboard-is-open/69610.
Doesn't quite achieve the desired behavior; you have to scroll all the way to top to access the bar. Also seems to interfere with the "Go to last line" command.
Written by @kapirklaa https://discord.com/channels/686053708261228577/702656734631821413/1284489126741282816 (pointed out by AForAnglerFishRights / @honeydewmelonbordercollie https://discord.com/channels/686053708261228577/702656734631821413/1423730549092253728)
*/
.workspace-leaf-content[data-type="markdown"] {
overflow: scroll;
.view-content {
overflow: visible;
}
.cm-scroller {
overflow: visible;
}
}