PKM-er / obsidian-floating-toc-plugin

MIT License
208 stars 6 forks source link

[feature request] option to disable and/or customization of sizing when pushing the file content when TOC is pinned / unpinned #100

Open sisi-sh opened 5 months ago

sisi-sh commented 5 months ago

Love the plugin! Lowkey didn't find it all that useful in general though and a little obtrusive on mobile. ended up disabling it via CSS. A style setting would be great!

Thanks for the hard work!

Snippet for anyone browsing:

.workspace-leaf-content .floating-toc-div.pin:is(.floating-left,.floating-both)+.markdown-source-view>.cm-editor,
.workspace-leaf-content .floating-toc-div:is(.floating-left,.floating-both)+.markdown-source-view>.cm-editor {
    padding-left: inherit !important;
}
cumany commented 5 months ago

good! The default style is to prevent floating toc from overlapping with the body of the text. For small screens, this css snippets that reduce the amount of white space on the screen.