Skip to content

Line height for html elements fix still necessary? #2519

Open
@Graywaren

Description

What happened?

Hi
Is this fix still necessary with the current version of obsidian? I discovered it when I needed to add css to override/unset it recently to get my html elements displaying correctly again. I'm uncertain if I removed different css in my snippet that had unknowingly been compensating for it or if the latest obsidian update changed the rendering so that it's no longer necessary. I believe it was originally added for this bug

/** Live Preview padding fixes, specifically for DataviewJS custom HTML elements. */
.is-live-preview .block-language-dataviewjs > p, .is-live-preview .block-language-dataviewjs > span {
    line-height: 1.0;
}

DQL

No response

JS

Dataview Version

0.5.67

Obsidian Version

1.8.4

OS

Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions