I use Obsidian in two ways: One when I am connected to an external monitor and one when I am using it on the laptop itself.
When I set a sidebar position (width) on external monitor and then switch to laptop monitor, the sidebar position (width) stays on the absolute position, instead of the relative position as per that monitor’s resolution and overall dimension.
Is there a way to make the sidebar position set relative to overall screen resolution?
I remember having saved workspaces with similar setup and running into similar difficulties.
The basic underlying problem I remember was about resolution..?
I no longer use external screens, only zoom out in Appearance setting trying to accomodate more info in one screen.
As for your question, there are no settings.
I reckon something could be done…like programatically monitor whether you have the external attached or not, and hotswapping the contents of workspace.json (if that is even possible without having to reload Obsidian) with the re-scaled values…but no one is going to do that for you here.
I did one thing. Create two separate workspaces with different hardcoded sidebar widths, each configured for the two types of screens I use. And whichever screen I am on, I just switch to that workspace, and at least the sidebars are fixed.
Now, I just have to manage the open notes or any work that I was doing to be opened again in case I switched screens midway while working on Obsidian.
This works for most of the time. Though, I expected Obsidian to have this as a default configuration in the software, so that it can support any screen resolution without losing its configured “look and feel”. Basically, it should be responsive to screen resolution.
Since you’re talking about two specific setups you might be able to use the CSS trickery related to choosing between tabley/phone media size where one uses the device size to choose either of two (or more) variants.
See the following link for some media related CSS: