Hide 'no file is open' message

What I’m trying to do

When creating a new tab without opening a new tab, you see the ‘message’ No file is open, with some options (Create new note, Go to file, See recent files).

Is there a way to hide this (with css)?

Things I have tried

Couldn’t find anything solving this in the form. Most related I could find are:

I’m no CSS expert (:see_no_evil:) so I have no idea if this could have any unwanted effects but using Obsidian’s default theme this seems to hide the whole block in the middle :blush:

.empty-state-container {
    display: none;
}

If it doesn’t work for you or break anything (:see_no_evil: :sweat_smile:… Please, make back-up :innocent: ), you can take a look at the Dev Tools (you can access hitting CTRL + SHIFT + i on Windows/Linux or CMD + OPTION + i on MacOS) and pin-point element you’d like to modify through CSS after activating the “Element to inspect” selector at the top:

2 Likes

I’ve been using this .css snippet for quite some time now (a few months, probably), and I haven’t seen it break anything - it works quite correctly without any consequences, so everything should be fine.

So you don’t have to worry about that… I guess…

2 Likes

Amazing, works for me! Thanks :smile:

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.