nothingislost/obsidian-hover-editor

Change line height

huachuman opened this issue · 3 comments

Is there any way to change line height in the hover editor?

Currently the line height is much taller than how it appears in the rest of my vault. I tried poking around with the element picker tool to see if I could isolate the selector but I can't seem to figure out how to change line height for the hover editor.

Why isn't there a setting for this?

pjeby commented

It looks like it's an issue with a change in how font sizes are specified in newer versions of Obsidian. Try this CSS:

.popover.hover-editor .markdown-preview-view {
    font-size: var(--font-text-size);
}

Thanks, but that one doesn't seem to do anything, sadly.

pjeby commented

How about this:

body .popover.hover-editor .markdown-preview-view {
    font-size: var(--font-text-size);
}