noatpad / obsidian-banners

An Obsidian plugin that adds banners to your notes
MIT License
616 stars 39 forks source link

[Bug] Doesn't play well with long titles #129

Open Aeases opened 11 months ago

Aeases commented 11 months ago

v2.0.3 beta

image

noatpad commented 11 months ago

Hm, so the issue there is that the header holds position: absolute. And while I could remove it in the scenario where a note only has a header, the same problem will happen if it's a banner + header in a note.

I'm currently looking into an alternative way to place the banner (and thus, the header) into the view, which could allow more flexibility for those elements and compatibility with other plugins, including properly resizing the header

Aeases commented 11 months ago

Resizing would be great! I've got some banners e.g. like the one below where part of the content doesnt fit into the view depending on the size of the "leaflet" (i think thats the term obsidian uses?)

output

noatpad commented 11 months ago

(Oh whoops, I could've sworn I replied to this when I saw this message)

Leaf is the correct term, yes, and if by "part of the content", you mean the image being overflowed horizontally instead of vertically, that is intended! There have been some requests on how these cases should be managed, but I haven't quite figured figured out what would work best there.

Also the https://github.com/noatpad/obsidian-banners/releases/tag/2.0.4-beta release should now fix the issue with long headers now