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

Unwanted space above the banner

Open thomasvs opened this issue 3 years ago • 4 comments

Hi,

neat plug-in, thanks!

I'm trying to figure out why there's space above my banners, and an expander handle that I'd like to get rid of.

I think the expander handle goes away by choosing the embed style, is that right?

I can't get rid of the extra size, and I narrowed it down to one css rule, but I don't know why it's happening or how I can fix it.

Attaching screenshots of the one css rule enabled/disabled if that helps. Screenshot from 2022-02-17 17-09-14 Screenshot from 2022-02-17 17-09-21

thomasvs avatar Feb 17 '22 22:02 thomasvs

Huh, is the theme perhaps? That one CSS rule is actually intended to be there, but the child with the class name obsidian-banner should have a position; absolute; rule among others that sets the banner in place. Just to make sure, which theme/plugins are you using?

noatpad avatar Mar 04 '22 19:03 noatpad

@thomasvs It looks like this might be coming from the Copy button for code blocks plugin. I noticed this in my vault as well, and disabling the copy button fixed my issues.

lepperm avatar Mar 09 '22 14:03 lepperm

Just found this out to, that plugin adds it's a bit of css. This issue https://github.com/jdbrice/obsidian-code-block-copy/issues/17 has a workaround

joethei avatar Mar 09 '22 14:03 joethei

Yeah this looks like that's one of those plugin compatibility issues. The workaround mentioned should work fine for now since I'm considering doing some changes to fix those conflicts

noatpad avatar Apr 14 '22 04:04 noatpad