Open
Conversation
|
可以隐藏那个帮助栏嘛?就是带有“?”的那个一排工具。我发现你的插件隐藏标题后,那个工具会阻碍到关闭选项。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi!
Thank you for the Hider plugin, I really enjoy using it to unclutter my Obsidian setup!
Couple of weeks ago I had to share my screen with an Obsidian window and didn't want people to see some of the tabs titles. I remembered how I do that in my web browser. I usually just pin the tab and there is no title, only the favicon. That way I don't have to close it, people watching my screen are not distracted by the titles of the open tabs and I can still come back to these tabs later on.
I went to check what existing plugins had to offer and didn't find anything. So I went ahead and figured out this CSS snippet with some help from my colleagues:
It is kind of complicated and hard to understand, because it uses a tricky syntax to find if there is a parent element which has
.mod-pinnedclass. But it works. There are also some fixes related to reduction of the extra whitespace.It simulates what browsers do, except that pinned tabs in Obsidian can still be moved around.
The result looks like this:
And it works much better with Iconize plugin, because it adds more area to drag the tab around and also looks like favicons in the browser. Here is an example:
I tried my best to keep the structure of your plugin and also updated readme. Not sure if I had to update manifest and versions files. Please let me know if I should, I would be happy to do so!