cqroot / joplin-outline

A markdown outline (TOC) sidebar plugin for Joplin.
MIT License
215 stars 16 forks source link

[Question] - The space between two sections is a little wide #67

Closed dunmorogher closed 1 year ago

dunmorogher commented 1 year ago

Hello there! Can anyone guide me how to reduce the space size between two sections in outline area?

image

Thanks a lot in advance! :-)

cqroot commented 1 year ago
div.container p {
  margin: 5px;
}

Add it to User Style in plugin settings or $profileDir/outline.css.

https://github.com/cqroot/joplin-outline/wiki/Custom-panel-style

dunmorogher commented 1 year ago
div.container p {
  margin: 5px;
}

Add it to User Style in plugin settings or $profileDir/outline.css.

https://github.com/cqroot/joplin-outline/wiki/Custom-panel-style

@cqroot thanks for this! And if you can tell me where is the folder path of $profileDir? :-)

cqroot commented 1 year ago

The directory can be accessed from the menu Help - Open profile directory

dunmorogher commented 1 year ago

@cqroot got it! Thank you!

dunmorogher commented 1 year ago

@cqroot Hi, I put the CSS code into userstyle.css, but it seemed still not working.

image

image

cqroot commented 1 year ago

Add in outline.css instead of userstyle.css.

dunmorogher commented 1 year ago

When I clicked the "Open profile directory" it said below:

image

So, should I manually create that file in the directory that the screenshot mentioned?

By the way, it is actually not working to add the CSS code into "userstyle.css", is that right? Or the Wiki content should be changed? :-)

cqroot commented 1 year ago
  1. The user style in the wiki refers to the plugin settings
  2. I don't know why the profile directory does not exist. Generally, this is the directory where userstyle.css is located.

image

dunmorogher commented 1 year ago

Cool! I put the code into the location as your screenshot points to and then it works as expected. For "Open profile directory" I got it. Thank you again!