alangrainger / share-note

Instantly share an Obsidian note with the full theme exactly like you see in your vault. Data is shared encrypted by default, and only you and the person you send it to have the key.
MIT License
326 stars 17 forks source link

Why is Padding Added to Shared Notes? #85

Open beforedo opened 8 months ago

beforedo commented 8 months ago

For some reason, when the 'Style Settings' plugin is enabled, and then I upload the shared note, it adds 64px of padding to the top, bottom, left, and right. However, in the app, in reading and editing view, there is no such padding. When I disable the 'Style Settings' plugin, the padding goes away.

After inspecting the page, I narrowed it down to the following CSS Code. In the inspector, when I change the 'file-margins' to 0px, the padding goes away. However, this change is only in the inspector, not permanent. How would I make the necessary changes so that the file uploads to automatically have a file-margin of 0px? My suspicion is it has something to do with how the 'Share Note' plugin interacts with the 'Style Settings' plugin. Would I have to add a Snippet? Any help appreciated!

Here is the actual property in the Shared Note CSS file:

body.css-settings-manager { --cornell-cue-column-width-readable-line: 200px; --cornell-cue-column-width: 200px; --cornell-summary-callout-top-height: 200px; --cornell-summary-callout-max-height: 200px; --cornell-cue-callout-width: 208px; --cornell-cue-callout-width-readable-line: 208px; --file-margins: 64px }