ozntel / oz-image-in-editor-obsidian

This Obsidian plugin to view Images, Transclusions, iFrames and PDF Files within the Editor without a necessity to switch to Preview.
339 stars 13 forks source link

collapsing header will still show image #29

Closed Friedolito closed 3 years ago

Friedolito commented 3 years ago

Love the plug-in! But I ran into a problem: When I have a picture under a heading, the picture sometimes still shows up when I collapse the header and there is no way to hide it. ImageView

Greetings Friedrich

ozntel commented 3 years ago

Can you update the version from community plugins and try again? I included a feature to hide widget together with the line

Friedolito commented 3 years ago

Thanks a lot for the quick reply and fix! Unfortunately the pictures will still show up, after collapsing the headers/lines: Jun-05-2021 17-43-29 I tried the default theme and disabling all plug-ins, but it didn't had an impact.

ozntel commented 3 years ago

Which version of the plugin are you using?

Friedolito commented 3 years ago

It its 1.1.8

ozntel commented 3 years ago

After I changed within the new version, it works actually for me as you can see in the video:

https://user-images.githubusercontent.com/55187568/120904736-ffb89380-c64d-11eb-9684-8d18c55df442.mov

Can you restart your Obsidian and unload-load the plugin?

Friedolito commented 3 years ago

I did it, but nothing changes.

But I did some experimenting and figured out, when it is happening to me: It only occurs, when the picture is on the last line under the heading/indention and there is no line afterwards. When I create a line, even empty, after the image, it gets hidden properly, when collapsing the section.