Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim heading (Stop soft-wrap) #16

Closed
shalintj opened this issue Apr 12, 2022 · 4 comments
Closed

Trim heading (Stop soft-wrap) #16

shalintj opened this issue Apr 12, 2022 · 4 comments

Comments

@shalintj
Copy link

Hey there! Just installed the plugin. Is it possible to trim headings in the outline? Right now, all the heading flow to the next line (aka, soft-wrap is enabled).

@guopenghui
Copy link
Owner

Modifying CSS file can achieve this.
But what if heading is too long? If hiding it, some contents can't be seen.
image

@shalintj
Copy link
Author

Can you help me with the CSS for the same?

So, the reason why I want to trim long headings is it makes them easily skimmable. I use the Quiet Outline plugin to quickly access headings for longer notes. And for that, just 2-3 words of a heading are enough to identify where I want to go.

Can you help me with the CSS for trimming / let the headings overflow in the plugin?

@guopenghui
Copy link
Owner

Yes, add this rule to styles.css or snippets folder :

image

@shalintj
Copy link
Author

It worked. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants