obsidian-plaintext icon indicating copy to clipboard operation
obsidian-plaintext copied to clipboard

Respect Options | Appearance | Quick font size adjustment

Open pm64 opened this issue 1 year ago • 0 comments

Currently, quick font size adjustment (ctrl+scroll or pinch-zoom) is not handled by text files displayed by this plug-in, so the setting is not respected.

I'm currently working around this by using the Minimal Theme Settings plug-in, which adds hotkey settings for font size increase/decrease. I then add the following CSS snippet:

div.workspace-leaf-content[data-type="text/plain (no file)"] div.CodeMirror.cm-s-default {
    font-size: var(--font-text-size);
}

I can then adjust font size using my keyboard, but this is not a great solution.

pm64 avatar Aug 04 '22 09:08 pm64